Skip to content
Permalink
Browse files

Fix creative mode check again

  • Loading branch information
sfan5 committed Mar 25, 2018
1 parent fb02170 commit 7e9000b502af6ff502d219901779911a0221fa12
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 7e9000b

Please sign in to comment.
You can’t perform that action at this time.