CC Tweaked getEnergy() and getEnergyCapacity() only return integer values. In this case it only returns Integer.MAX_VALUE for capacities bigger than it.
Steps to reproduce:
CC Lua Code:
cell = peripheral.find("powah:ender_cell")
maxE = cell.getEnergyCapacity() or 1
curE = cell.getEnergy() or 1
print("Max: "..maxE)
print("Current: "..curE)
Version:
Issue description:
CC Tweaked
getEnergy()
andgetEnergyCapacity()
only return integer values. In this case it only returnsInteger.MAX_VALUE
for capacities bigger than it.Steps to reproduce:
CC Lua Code:
Is this a crash?
No.
Screenshot
Other Issue Possibly Referencing this - #123