From 7e9000b502af6ff502d219901779911a0221fa12 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 25 Mar 2018 14:05:25 +0200 Subject: [PATCH] Fix creative mode check again --- mods/fireflies/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/fireflies/init.lua b/mods/fireflies/init.lua index 6282636c..47ad373f 100644 --- 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 creative.is_enabled_for(player:get_player_name()) then + if not (creative and creative.is_enabled_for(player:get_player_name())) then itemstack:add_wear(256) return itemstack end -- 2.25.1