Bigger Reactors

Bigger Reactors

17M Downloads

Reactor Computer Port .battery() function always returns nil

BartHageman opened this issue ยท 0 comments

commented

I tried to read out the energy level on my reactor's internal buffer using the .battery() function, but it seems to always return nil, even though the reactor is not actively cooled.

It also produced some warnings in the server log that looked relevant. I've attached them here:

[00:08:20] [ComputerCraft-Coroutine-2/WARN] [computercraft/]: Lua Method net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery.capacity should be final.
[00:08:20] [ComputerCraft-Coroutine-2/ERROR] [computercraft/]: Lua Method net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery.capacity should be on a public class.
[00:08:20] [ComputerCraft-Coroutine-2/WARN] [computercraft/]: Lua Method net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery.producedLastTick should be final.
[00:08:20] [ComputerCraft-Coroutine-2/ERROR] [computercraft/]: Lua Method net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery.producedLastTick should be on a public class.
[00:08:20] [ComputerCraft-Coroutine-2/WARN] [computercraft/]: Lua Method net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery.stored should be final.
[00:08:20] [ComputerCraft-Coroutine-2/ERROR] [computercraft/]: Lua Method net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery.stored should be on a public class.
[00:08:20] [ComputerCraft-Coroutine-2/WARN] [computercraft/]: Received unknown type 'net.roguelogix.biggerreactors.multiblocks.reactor.deps.ReactorPeripheral$Battery', returning nil.