Skip to content

Commit

Permalink
Fix creative mode check again
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 25, 2018
1 parent fb02170 commit 7e9000b
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 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
Expand Down

0 comments on commit 7e9000b

Please sign in to comment.