Actually Additions

Actually Additions

66M Downloads

Make Laser Relays check if a machine they're trying to input into can receive anything

Ellpeck opened this issue ยท 0 comments

commented

So that things like the oil generator which only output 150 RF at most per tick will actaully get some energy out. If a Laser Relay is connected to multiple oil generators an only one receiver, it tries to split up those 150 RF for all of the oil gens even though they can't receive any.

This can be done by simply calling the receiveEnergy() method with Integer.MAX_VALUE and simulate on true and then checking if the amount returned is greater than 0.