correctly find mek 10.1+ fission reactors

This commit is contained in:
Mikayla Fischler 2022-07-17 15:05:27 -04:00
parent c3d6d900a1
commit 2aedc015c8
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ local config = require("reactor-plc.config")
local plc = require("reactor-plc.plc")
local threads = require("reactor-plc.threads")
local R_PLC_VERSION = "beta-v0.8.0"
local R_PLC_VERSION = "beta-v0.8.1"
local print = util.print
local println = util.println

View File

@ -298,7 +298,7 @@ end
-- get the fission reactor (if multiple, returns the first)
---@return table|nil reactor function table
function ppm.get_fission_reactor()
return ppm.get_device("fissionReactor")
return ppm.get_device("fissionReactor") or ppm.get_device("fissionReactorLogicAdapter")
end
-- get the wireless modem (if multiple, returns the first)