parent
36549e9a49
commit
5b5816a65c
@ -20,7 +20,7 @@ local transformer={}
|
|||||||
transformer.onPowerFlow=function(pos,side,amount)
|
transformer.onPowerFlow=function(pos,side,amount)
|
||||||
local normalized=industrialtest.api.normalizeSide(pos,side)
|
local normalized=industrialtest.api.normalizeSide(pos,side)
|
||||||
local def=minetest.registered_nodes[minetest.get_node(pos).name]
|
local def=minetest.registered_nodes[minetest.get_node(pos).name]
|
||||||
if normalized~=5 and amount>=def._industrialtest_lowerFlow then
|
if normalized~=5 and amount>def._industrialtest_lowerFlow then
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
industrialtest.internal.explode(pos,2)
|
industrialtest.internal.explode(pos,2)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user