Fixes #3389: Prevent inventory cache from becoming unmatched. (#3390)

Use slightly faster ArrayDeqeue instead of LinkedList.
Check boolean fields before more complex datatypes
This commit is contained in:
yueh
2018-02-17 19:10:09 +01:00
committed by GitHub
parent 22807bc619
commit eed4776c6f
6 changed files with 37 additions and 63 deletions
@@ -19,9 +19,10 @@
package appeng.me.storage;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import java.util.NavigableMap;
import java.util.concurrent.ConcurrentSkipListMap;
@@ -144,7 +145,7 @@ public class MEMonitorIInventory implements IMEMonitor<IAEItemStack>, ITickingMo
public TickRateModulation onTick()
{
final LinkedList<IAEItemStack> changes = new LinkedList<>();
final List<IAEItemStack> changes = new ArrayList<>();
this.list.resetStatus();
int high = 0;