1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-23 07:10:19 +01:00

Fix creative mode check in fireflies mod

This commit is contained in:
sfan5 2018-03-25 13:47:20 +02:00
parent 465d8cae3e
commit fb0217042b

View File

@ -103,7 +103,7 @@ minetest.register_tool("fireflies:bug_net", {
minetest.add_item(pointed_thing.under, node_name.." 1") minetest.add_item(pointed_thing.under, node_name.." 1")
end end
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) itemstack:add_wear(256)
return itemstack return itemstack
end end