fixed bug with hud removal
This commit is contained in:
parent
8cfaaed308
commit
3dec7bf200
|
@ -229,9 +229,9 @@ minetest.register_node("cottages:anvil", {
|
||||||
end
|
end
|
||||||
minetest.after(2, function()
|
minetest.after(2, function()
|
||||||
if( puncher ) then
|
if( puncher ) then
|
||||||
puncher:hud_remove(hud1);
|
if(hud1) then puncher:hud_remove(hud1); end
|
||||||
puncher:hud_remove(hud2);
|
if(hud2) then puncher:hud_remove(hud2); end
|
||||||
puncher:hud_remove(hud3);
|
if(hud3) then puncher:hud_remove(hud3); end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
|
@ -333,13 +333,13 @@ minetest.register_node("cottages:threshing_floor", {
|
||||||
|
|
||||||
minetest.after(2, function()
|
minetest.after(2, function()
|
||||||
if( puncher ) then
|
if( puncher ) then
|
||||||
puncher:hud_remove(hud1);
|
if(hud1) then puncher:hud_remove(hud1); end
|
||||||
puncher:hud_remove(hud2);
|
if(hud2) then puncher:hud_remove(hud2); end
|
||||||
puncher:hud_remove(hud3);
|
if(hud3) then puncher:hud_remove(hud3); end
|
||||||
puncher:hud_remove(hud4);
|
if(hud4) then puncher:hud_remove(hud4); end
|
||||||
puncher:hud_remove(hud5);
|
if(hud5) then puncher:hud_remove(hud5); end
|
||||||
puncher:hud_remove(hud6);
|
if(hud6) then puncher:hud_remove(hud6); end
|
||||||
puncher:hud_remove(hud0);
|
if(hud0) then puncher:hud_remove(hud0); end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue