forked from mrkubax10/industrialtest
Machines now explode when there is too much power transferred
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user