From: paramat Date: Thu, 30 Mar 2017 02:24:43 +0000 (+0100) Subject: Carts: Remove '+' added in commit 077316b X-Git-Tag: 0.4.16~38 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5fe831ed139d882b2838cbd75caa1f5a4d9674ad;p=oweals%2Fminetest_game.git Carts: Remove '+' added in commit 077316b --- diff --git a/mods/carts/cart_entity.lua b/mods/carts/cart_entity.lua index 4d44c873..a19da648 100644 --- a/mods/carts/cart_entity.lua +++ b/mods/carts/cart_entity.lua @@ -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