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

@@ -6,6 +6,7 @@
- Added back crafting recipes (raoulvdberge) - Added back crafting recipes (raoulvdberge)
- Changed Grid recipe (raoulvdberge) - Changed Grid recipe (raoulvdberge)
- Changed Crafting Monitor recipe (raoulvdberge) - Changed Crafting Monitor recipe (raoulvdberge)
- Fixed Filters not persisting correctly in Wireless Grid and Wireless Crafting Monitor (raoulvdberge)
### 1.5 ### 1.5
- Port to Minecraft 1.12 (raoulvdberge) - Port to Minecraft 1.12 (raoulvdberge)

View File

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

View File

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