Skip to content

Commit

Permalink
Fix creative mode check in fireflies mod
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 25, 2018
1 parent 465d8ca commit fb02170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/fireflies/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit fb02170

Please sign in to comment.