mirror of
https://github.com/Sokomine/cottages.git
synced 2024-12-27 11:10:36 +01:00
fixed bug with hud removal
This commit is contained in:
parent
8cfaaed308
commit
3dec7bf200
@ -229,9 +229,9 @@ minetest.register_node("cottages:anvil", {
|
||||
end
|
||||
minetest.after(2, function()
|
||||
if( puncher ) then
|
||||
puncher:hud_remove(hud1);
|
||||
puncher:hud_remove(hud2);
|
||||
puncher:hud_remove(hud3);
|
||||
if(hud1) then puncher:hud_remove(hud1); end
|
||||
if(hud2) then puncher:hud_remove(hud2); end
|
||||
if(hud3) then puncher:hud_remove(hud3); end
|
||||
end
|
||||
end)
|
||||
|
||||
|
@ -333,13 +333,13 @@ minetest.register_node("cottages:threshing_floor", {
|
||||
|
||||
minetest.after(2, function()
|
||||
if( puncher ) then
|
||||
puncher:hud_remove(hud1);
|
||||
puncher:hud_remove(hud2);
|
||||
puncher:hud_remove(hud3);
|
||||
puncher:hud_remove(hud4);
|
||||
puncher:hud_remove(hud5);
|
||||
puncher:hud_remove(hud6);
|
||||
puncher:hud_remove(hud0);
|
||||
if(hud1) then puncher:hud_remove(hud1); end
|
||||
if(hud2) then puncher:hud_remove(hud2); end
|
||||
if(hud3) then puncher:hud_remove(hud3); end
|
||||
if(hud4) then puncher:hud_remove(hud4); end
|
||||
if(hud5) then puncher:hud_remove(hud5); end
|
||||
if(hud6) then puncher:hud_remove(hud6); end
|
||||
if(hud0) then puncher:hud_remove(hud0); end
|
||||
end
|
||||
end)
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user