#2757 Fix not checking hasNext() in dimtrans

This commit is contained in:
tterrag1098 committed 2015-09-02 19:34:03 -04:00
1 parent fa74631759
commit 13c1971fea
1 file changed
+1 -1
@@ -338,7 +338,7 @@ public class TileTransceiver extends AbstractPoweredTaskEntity implements IFluid
int canSend = getMaxSendableEnergy();
if(canSend > 0 && !sendTo.isEmpty()) {
Iterator<Channel> iter = sendTo.iterator();
while (canSend > 0) {
while (canSend > 0 && iter.hasNext()) {
ServerChannelRegister.instance.sendPower(this, canSend, iter.next());
canSend = getMaxSendableEnergy();
}