forked from VoxeLibre/VoxeLibre
Fix dumb mistake in creative crash fix
This commit is contained in:
parent
e294466029
commit
2a9d704293
|
@ -209,7 +209,6 @@ end
|
||||||
minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
|
minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing)
|
||||||
if not puncher or not puncher:is_player() then return end
|
if not puncher or not puncher:is_player() then return end
|
||||||
local name = puncher:get_player_name()
|
local name = puncher:get_player_name()
|
||||||
if minetest.is_creative_enabled(name) then return end
|
|
||||||
if not minetest.is_creative_enabled(name) then return end
|
if not minetest.is_creative_enabled(name) then return end
|
||||||
if pointed_thing.type ~= "node" then return end
|
if pointed_thing.type ~= "node" then return end
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
|
|
Loading…
Reference in New Issue