Fixed Filters not persisting correctly in Wireless Grid and Wireless Crafting Monitor
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user