Remove red overlays

This commit is contained in:
Raoul Van den Berge
2016-10-29 15:37:44 +02:00
parent c3e67814ae
commit 8478daac0a
2 changed files with 7 additions and 7 deletions

View File

@@ -12,18 +12,18 @@ public abstract class ItemStorageExternal implements IItemStorage {
public abstract int getCapacity();
public boolean updateCache() {
List<ItemStack> items = getStacks();
List<ItemStack> newStacks = getStacks();
if (this.cache == null) {
this.cache = items;
} else if (items.size() != cache.size()) {
this.cache = items;
this.cache = newStacks;
} else if (newStacks.size() != cache.size()) {
this.cache = newStacks;
return true;
} else {
for (int i = 0; i < items.size(); ++i) {
if (!API.instance().getComparer().isEqual(items.get(i), cache.get(i))) {
this.cache = items;
for (int i = 0; i < newStacks.size(); ++i) {
if (!API.instance().getComparer().isEqual(newStacks.get(i), cache.get(i))) {
this.cache = newStacks;
return true;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB