Machines now explode when there is too much power transferred

This commit is contained in:
2023-11-19 14:53:43 +01:00
parent 84efcf7f7f
commit 286f95596f
3 changed files with 27 additions and 17 deletions

View File

@@ -243,6 +243,7 @@ reactor.activeOnTimer=function(pos,elapsed,meta,inv)
if heat>200 then
-- TODO: Explode
minetest.remove_node(pos)
industrialtest.internal.explode(pos,#maxCluster*4)
return false,false
end
meta:set_int("heat",heat)