mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-20 12:19:55 +00:00
Crash when setting round robin mode with no outputs.
This commit is contained in:
1 parent
bc55ccc40a
commit
f2bb68ae3f
1 file changed
+4
-1
@@ -369,11 +369,14 @@ public class NetworkedInventory {
|
||||
|
||||
@Override
|
||||
public boolean hasNext() {
|
||||
return currentCount <= sendPriority.size();
|
||||
return !sendPriority.isEmpty() && currentCount <= sendPriority.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Target next() {
|
||||
if(sendPriority.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
currentCount++;
|
||||
index++;
|
||||
if(index >= sendPriority.size()) {
|
||||
|
||||
Reference in new issue
Block a user