mirror of
https://github.com/Sokomine/cottages.git
synced 2024-09-26 06:20:35 +02:00
Merge pull request #2 from oversword/bls-370
Check if huds exist before removing them
This commit is contained in:
commit
cb88628e19
|
@ -230,9 +230,13 @@ minetest.register_node("cottages:anvil", {
|
|||
minetest.after(2, function()
|
||||
if( puncher ) then
|
||||
puncher:hud_remove(hud1);
|
||||
if hud2 then
|
||||
puncher:hud_remove(hud2);
|
||||
end
|
||||
if hud3 then
|
||||
puncher:hud_remove(hud3);
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- tell the player when the job is done
|
||||
|
@ -300,4 +304,3 @@ minetest.register_craft({
|
|||
{'cottages:anvil'},
|
||||
{cottages.craftitem_stick} }
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user