Skip to content

Commit

Permalink
Fix crash when removing HUD's (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Panquesito7 committed Nov 14, 2020
1 parent faf3ed7 commit 1fa1fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ minetest.register_node("anvil:anvil", {
})
end
minetest.after(2, function()
if( puncher ) then
if( puncher ) and ( hud2 ) and ( hud3 ) then
puncher:hud_remove(hud2)
puncher:hud_remove(hud3)
end
Expand Down

0 comments on commit 1fa1fd1

Please sign in to comment.