From 5b5816a65c89ba5ff46600f396bb08b839ca9a58 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Mon, 13 May 2024 19:03:25 +0200 Subject: [PATCH] Make only higher power flow destroy transformer Fixes #24 --- machines/transformer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/transformer.lua b/machines/transformer.lua index ad7bd2e..d1b8fe6 100644 --- a/machines/transformer.lua +++ b/machines/transformer.lua @@ -20,7 +20,7 @@ local transformer={} transformer.onPowerFlow=function(pos,side,amount) local normalized=industrialtest.api.normalizeSide(pos,side) 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) industrialtest.internal.explode(pos,2) end