Fixed Filters not persisting correctly in Wireless Grid and Wireless Crafting Monitor

This commit is contained in:
raoulvdberge
2017-06-16 18:22:56 +02:00
parent 717951cf1d
commit 1d4c77a64f
3 changed files with 5 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ public class WirelessCraftingMonitor implements ICraftingMonitor {
stack.setTagCompound(new NBTTagCompound());
}
RSUtils.writeItems(this, slot, stack.getTagCompound());
RSUtils.writeItems(this, 0, stack.getTagCompound());
TileController controller = getController();
@@ -55,9 +55,7 @@ public class WirelessCraftingMonitor implements ICraftingMonitor {
this.viewAutomated = ItemWirelessCraftingMonitor.canViewAutomated(stack);
if (stack.hasTagCompound()) {
for (int i = 0; i < 4; ++i) {
RSUtils.readItems(filter, i, stack.getTagCompound());
}
RSUtils.readItems(filter, 0, stack.getTagCompound());
}
}

View File

@@ -53,7 +53,7 @@ public class WirelessGrid implements IGrid {
stack.setTagCompound(new NBTTagCompound());
}
RSUtils.writeItems(this, slot, stack.getTagCompound());
RSUtils.writeItems(this, 0, stack.getTagCompound());
}
};
@@ -71,9 +71,7 @@ public class WirelessGrid implements IGrid {
this.size = ItemWirelessGrid.getSize(stack);
if (stack.hasTagCompound()) {
for (int i = 0; i < 4; ++i) {
RSUtils.readItems(filter, i, stack.getTagCompound());
}
RSUtils.readItems(filter, 0, stack.getTagCompound());
}
}