Carts: Remove '+' added in commit 077316b

This commit is contained in:
paramat 2017-03-30 03:24:43 +01:00
parent 2f46103ff8
commit 5fe831ed13

View File

@ -93,7 +93,7 @@ function cart_entity:on_punch(puncher, time_from_last_punch, tool_capabilities,
-- Pick up cart -- Pick up cart
local inv = puncher:get_inventory() local inv = puncher:get_inventory()
if not (creative and creative.is_enabled_for 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 or not inv:contains_item("main", "carts:cart") then
local leftover = inv:add_item("main", "carts:cart") local leftover = inv:add_item("main", "carts:cart")
-- If no room in inventory add a replacement cart to the world -- If no room in inventory add a replacement cart to the world