From: sfan5 Date: Sun, 25 Mar 2018 12:05:25 +0000 (+0200) Subject: Fix creative mode check again X-Git-Tag: 5.0.0~93 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7e9000b502af6ff502d219901779911a0221fa12;p=oweals%2Fminetest_game.git Fix creative mode check again --- 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