Fix creative mode check in fireflies mod
authorsfan5 <sfan5@live.de>
Sun, 25 Mar 2018 11:47:20 +0000 (13:47 +0200)
committersfan5 <sfan5@live.de>
Sun, 25 Mar 2018 11:47:20 +0000 (13:47 +0200)
mods/fireflies/init.lua

index 8f888cefccc61567ab2da8d3711f3d3b37a1e8f6..6282636c613898e000d13ff60d0f847897656a01 100644 (file)
@@ -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