mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
correctly find mek 10.1+ fission reactors
This commit is contained in:
@ -13,7 +13,7 @@ local config = require("reactor-plc.config")
|
|||||||
local plc = require("reactor-plc.plc")
|
local plc = require("reactor-plc.plc")
|
||||||
local threads = require("reactor-plc.threads")
|
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 print = util.print
|
||||||
local println = util.println
|
local println = util.println
|
||||||
|
@ -298,7 +298,7 @@ end
|
|||||||
-- get the fission reactor (if multiple, returns the first)
|
-- get the fission reactor (if multiple, returns the first)
|
||||||
---@return table|nil reactor function table
|
---@return table|nil reactor function table
|
||||||
function ppm.get_fission_reactor()
|
function ppm.get_fission_reactor()
|
||||||
return ppm.get_device("fissionReactor")
|
return ppm.get_device("fissionReactor") or ppm.get_device("fissionReactorLogicAdapter")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get the wireless modem (if multiple, returns the first)
|
-- get the wireless modem (if multiple, returns the first)
|
||||||
|
Reference in New Issue
Block a user