updated
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
|
|
||||||
local function report()
|
local function report()
|
||||||
local peripherals = peripheral.getNames()
|
local reactor = peripheral.find("fissionReactorLogicAdapter")
|
||||||
for i, name in ipairs(peripherals) do
|
if reactor then
|
||||||
print("Peripheral " .. i .. ": " .. name)
|
return reactor.getTemperature()
|
||||||
|
else
|
||||||
|
return "No reactor found"
|
||||||
end
|
end
|
||||||
return "abc"
|
|
||||||
-- local reactor = peripheral.find("fissionReactorLogicAdapter")
|
|
||||||
-- return reactor.getTemerature()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return { report = report }
|
return { report = report }
|
||||||
Reference in New Issue
Block a user