Tech Reborn

Tech Reborn

30M Downloads

Generators are broken.

modmuss50 opened this issue ยท 2 comments

commented

They can accept any fluid

commented

Inside a GasTurbine when a unvalid fluid (like water) is inserted it try to check in this map https://github.com/TechReborn/TechReborn/blob/1.11/src/main/java/techreborn/tiles/generator/TileGasTurbine.java#L42 to get the fuel value, however if the fluid isn't present it will return a null Integer object, inducing a NullPointer when evaluating the amount to consume per tick : https://github.com/TechReborn/TechReborn/blob/1.11/src/main/java/techreborn/tiles/generator/TileGasTurbine.java#L121

I think that this issue could be fixed by creation of a unified recipe system for the generators, allowing them to check it before accepting any fluid.

commented

Fixed in 97192ee