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:
465d8ca
)
Fix creative mode check in fireflies mod
author
sfan5
<sfan5@live.de>
Sun, 25 Mar 2018 11:47:20 +0000
(13:47 +0200)
committer
sfan5
<sfan5@live.de>
Sun, 25 Mar 2018 11:47:20 +0000
(13:47 +0200)
mods/fireflies/init.lua
patch
|
blob
|
history
diff --git
a/mods/fireflies/init.lua
b/mods/fireflies/init.lua
index 8f888cefccc61567ab2da8d3711f3d3b37a1e8f6..6282636c613898e000d13ff60d0f847897656a01 100644
(file)
--- a/
mods/fireflies/init.lua
+++ b/
mods/fireflies/init.lua
@@
-103,7
+103,7
@@
minetest.register_tool("fireflies:bug_net", {
minetest.add_item(pointed_thing.under, node_name.." 1")
end
end
- if not
minetest.setting_getbool("creative_mode"
) then
+ if not
creative.is_enabled_for(player:get_player_name()
) then
itemstack:add_wear(256)
return itemstack
end