projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f46103
)
Carts: Remove '+' added in commit 077316b
author
paramat
<mat.gregory@virginmedia.com>
Thu, 30 Mar 2017 02:24:43 +0000
(
03:24
+0100)
committer
paramat
<mat.gregory@virginmedia.com>
Thu, 30 Mar 2017 03:24:29 +0000
(
04:24
+0100)
mods/carts/cart_entity.lua
patch
|
blob
|
history
diff --git
a/mods/carts/cart_entity.lua
b/mods/carts/cart_entity.lua
index 4d44c8730481632f62b2d822bbe067c7d78aeac1..a19da64833d5a482561b46ad979db806d54f3397 100644
(file)
--- 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