fix TileEnergyEmitter mistake

This commit is contained in:
asiekierka 2014-09-03 19:27:31 +02:00
parent cba7b0ba18
commit 95e77f77c3

View file

@ -123,7 +123,7 @@ public class TileEnergyEmitter extends TileBuildCraft {
}
}
} else {
int perTargetEnergy = (int)Math.floor(getBattery().useEnergy(targets.size(), targets.size() * 100, false));
int perTargetEnergy = (int)Math.floor(getBattery().useEnergy(targets.size(), targets.size() * 100, false) / targets.size());
for (Target t : targets.values()) {
if (!t.data.isVisible) {