Skip to content

Commit

Permalink
Carts: Remove '+' added in commit 077316b
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Mar 30, 2017
1 parent 2f46103 commit 5fe831e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/carts/cart_entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fe831e

Please sign in to comment.