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:
67fa74a
)
Update mods/doors/init.lua
113/head
author
Lord89James
<neftali_dtctv@hotmail.com>
Sat, 26 Jan 2013 16:00:15 +0000
(17:00 +0100)
committer
Lord89James
<neftali_dtctv@hotmail.com>
Sat, 26 Jan 2013 16:00:15 +0000
(17:00 +0100)
Fix door's glitch in creative mode
mods/doors/init.lua
patch
|
blob
|
history
diff --git
a/mods/doors/init.lua
b/mods/doors/init.lua
index 3e239f052fad1acda48755ca170ebe27e7b28046..cb8ef795e0a3b978ec5cf4e242339a554cf42126 100644
(file)
--- a/
mods/doors/init.lua
+++ b/
mods/doors/init.lua
@@
-82,7
+82,9
@@
function doors:register_door(name, def)
meta:set_string("infotext", "Owned by "..pn)
end
- itemstack:take_item()
+ if not minetest.setting_getbool("creative_mode") then
+ itemstack:take_item()
+ end
return itemstack
end,
})