#118 PLC RPS fuel check fixed

This commit is contained in:
Mikayla Fischler 2023-02-25 12:07:25 -05:00
parent 4f285cf2b5
commit 446fff04da
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ function plc.rps_init(reactor, is_formed)
-- check if there is no fuel
local function _insufficient_fuel()
local fuel = reactor.getFuel()
local fuel = reactor.getFuelFilledPercentage()
if fuel == ppm.ACCESS_FAULT then
-- lost the peripheral or terminated, handled later
_set_fault()

View File

@ -14,7 +14,7 @@ local config = require("reactor-plc.config")
local plc = require("reactor-plc.plc")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "v0.12.0"
local R_PLC_VERSION = "v0.12.1"
local print = util.print
local println = util.println