updated all
This commit is contained in:
@@ -14,25 +14,25 @@ end
|
||||
|
||||
|
||||
|
||||
-- local function watch()
|
||||
-- while true do
|
||||
-- sleep(0.05) -- Update every tenth second
|
||||
-- end
|
||||
-- end
|
||||
local function watch()
|
||||
while true do
|
||||
sleep(0.05) -- Update every tenth second
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
local function stepUp()
|
||||
-- local value = getValue()
|
||||
-- if value < max then
|
||||
-- reactor.setBurnRate(value + rateStep)
|
||||
-- end
|
||||
local value = getValue()
|
||||
if value < max then
|
||||
reactor.setBurnRate(value + rateStep)
|
||||
end
|
||||
end
|
||||
|
||||
local function stepDown()
|
||||
-- local value = getValue()
|
||||
-- if value > min then
|
||||
-- reactor.setBurnRate(value - rateStep)
|
||||
-- end
|
||||
local value = getValue()
|
||||
if value > min then
|
||||
reactor.setBurnRate(value - rateStep)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user