From: sfan5 Date: Sun, 25 Mar 2018 11:47:20 +0000 (+0200) Subject: Fix creative mode check in fireflies mod X-Git-Tag: 5.0.0~94 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb0217042bd8d774a4d57f816db864654e65ad25;p=oweals%2Fminetest_game.git Fix creative mode check in fireflies mod --- 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