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