Carts: Remove '+' added in commit 077316b
authorparamat <mat.gregory@virginmedia.com>
Thu, 30 Mar 2017 02:24:43 +0000 (03:24 +0100)
committerparamat <mat.gregory@virginmedia.com>
Thu, 30 Mar 2017 03:24:29 +0000 (04:24 +0100)
mods/carts/cart_entity.lua

index 4d44c8730481632f62b2d822bbe067c7d78aeac1..a19da64833d5a482561b46ad979db806d54f3397 100644 (file)
@@ -93,7 +93,7 @@ function cart_entity:on_punch(puncher, time_from_last_punch, tool_capabilities,
                -- Pick up cart
                local inv = puncher:get_inventory()
                if not (creative and creative.is_enabled_for
-+                              and creative.is_enabled_for(puncher:get_player_name()))
+                               and creative.is_enabled_for(puncher:get_player_name()))
                                or not inv:contains_item("main", "carts:cart") then
                        local leftover = inv:add_item("main", "carts:cart")
                        -- If no room in inventory add a replacement cart to the world