mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
#2757 Fix not checking hasNext() in dimtrans
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user