mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-12 18:53:54 +01:00
Fix creative mode check again
This commit is contained in:
parent
fb0217042b
commit
7e9000b502
@ -103,7 +103,7 @@ minetest.register_tool("fireflies:bug_net", {
|
|||||||
minetest.add_item(pointed_thing.under, node_name.." 1")
|
minetest.add_item(pointed_thing.under, node_name.." 1")
|
||||||
end
|
end
|
||||||
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)
|
itemstack:add_wear(256)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user