1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fixed Cargo Round-Robin Mode

This commit is contained in:
TheBusyBiscuit 2017-04-10 09:57:58 +02:00
parent 5590118a52
commit 45554ce457

View File

@ -261,7 +261,7 @@ public class CargoNet {
int c_index = round_robin.get(entry.getKey()); int c_index = round_robin.get(entry.getKey());
if (c_index < outputlist.size()) { if (c_index < outputlist.size() - 1) {
for (int i = 0; i < c_index; i++) { for (int i = 0; i < c_index; i++) {
final Location temp = outputlist.get(0); final Location temp = outputlist.get(0);
outputlist.remove(temp); outputlist.remove(temp);
@ -645,8 +645,8 @@ public class CargoNet {
if (!sources.contains(l)) { if (!sources.contains(l)) {
String id = BlockStorage.checkID(l); String id = BlockStorage.checkID(l);
if (id == null) return false; if (id == null) return false;
if (id.equals("CARGO_MANAGER")) return true; else if (id.equals("CARGO_MANAGER")) return true;
if (id.equals("CARGO_NODE")) return passiveScan(l, axis, sources); else if (id.equals("CARGO_NODE")) return passiveScan(l, axis, sources);
} }
return false; return false;
} }