Merge pull request 'Fix dumb mistake in creative crash fix' (#2742) from fix_creative_crash_5.6 into master

Reviewed-on: MineClone2/MineClone2#2742
This commit is contained in:
cora 2022-10-09 23:09:58 +00:00
commit d43494e3b7
1 changed files with 0 additions and 1 deletions

View File

@ -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]