Refactor machines.lua (reduced ~300 lines of code)
This commit is contained in:
2
api.lua
2
api.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user