Refactor machines.lua (reduced ~300 lines of code)

This commit is contained in:
2023-04-07 19:50:39 +02:00
parent dbb83ba6e3
commit 40d0e578c4
3 changed files with 523 additions and 600 deletions

View File

@@ -249,7 +249,7 @@ industrialtest.api.powerFlow=function(pos)
if def then
local updateFormspec=def._industrialtest_updateFormspec
if updateFormspec then
updateFormspec(value)
updateFormspec(neighbourPositions[key])
end
local onPowerFlow=def._industrialtest_onPowerFlow
if onPowerFlow and transferred then