From fb0217042bd8d774a4d57f816db864654e65ad25 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 25 Mar 2018 13:47:20 +0200 Subject: [PATCH] Fix creative mode check in fireflies mod --- 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 8f888cef..6282636c 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 minetest.setting_getbool("creative_mode") then + if not creative.is_enabled_for(player:get_player_name()) then itemstack:add_wear(256) return itemstack end -- 2.25.1