Fix not sorting correctly
This commit is contained in:
@@ -127,6 +127,7 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
|
|||||||
if (!machine.mayUpdate()) {
|
if (!machine.mayUpdate()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
machine.updateMachine();
|
machine.updateMachine();
|
||||||
|
|
||||||
if (machine instanceof TileWirelessTransmitter) {
|
if (machine instanceof TileWirelessTransmitter) {
|
||||||
@@ -158,7 +159,7 @@ public class TileController extends TileBase implements IEnergyReceiver, ISynchr
|
|||||||
newEnergyUsage += machine.getEnergyUsage();
|
newEnergyUsage += machine.getEnergyUsage();
|
||||||
}
|
}
|
||||||
|
|
||||||
Collections.sort(storages, new Comparator<IStorage>() {
|
Collections.sort(newStorages, new Comparator<IStorage>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(IStorage s1, IStorage s2) {
|
public int compare(IStorage s1, IStorage s2) {
|
||||||
if (s1.getPriority() == s2.getPriority()) {
|
if (s1.getPriority() == s2.getPriority()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user