Fixed infinite kinetic energy being produced, closes #22

This commit is contained in:
malte0811 2018-01-09 17:55:25 +01:00
parent b0156b70a0
commit b09745a320

View file

@ -79,7 +79,8 @@ public class TileEntityMechIEtoIC extends TileEntityIWBase implements IDirection
@Override
public int maxrequestkineticenergyTick(EnumFacing f) {
if (f == dir) {
return maxOutput;
int stored = (int) (ConversionUtil.kinPerRot() * rotBuffer);
return Math.min(maxOutput, stored);
} else {
return 0;
}