hopefully fix "too long without yielding" error for throttles
This commit is contained in:
4
main.lua
4
main.lua
@@ -176,7 +176,8 @@ function ThrottleInit()
|
||||
|
||||
local initialStates = getRelayStates()
|
||||
|
||||
while true do
|
||||
os.pullEvent("redstone")
|
||||
|
||||
local currentStates = getRelayStates()
|
||||
|
||||
for pname, currentState in pairs(currentStates) do
|
||||
@@ -190,7 +191,6 @@ function ThrottleInit()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
identifyThrottle("fore")
|
||||
identifyThrottle("aft")
|
||||
|
||||
Reference in New Issue
Block a user