Fixed Filters not persisting correctly in Portable Grid

This commit is contained in:
raoulvdberge
2017-06-21 00:36:22 +02:00
parent 8014fe1a5d
commit 4f5a9eac18
2 changed files with 3 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
### 1.5.2 ### 1.5.2
- Fixed a bug where loading nodes would abort when a single node has an error while reading (raoulvdberge) - Fixed a bug where loading nodes would abort when a single node has an error while reading (raoulvdberge)
- Fixed Filters not persisting correctly in Portable Grid (raoulvdberge)
### 1.5.1 ### 1.5.1
- Updated Forge to 2340 (raoulvdberge) - Updated Forge to 2340 (raoulvdberge)

View File

@@ -68,7 +68,7 @@ public class PortableGrid implements IGrid, IPortableGrid {
stack.setTagCompound(new NBTTagCompound()); stack.setTagCompound(new NBTTagCompound());
} }
RSUtils.writeItems(this, slot, stack.getTagCompound()); RSUtils.writeItems(this, 0, stack.getTagCompound());
} }
}; };
private ItemHandlerBase disk = new ItemHandlerBase(1, s -> NetworkNodeDiskDrive.VALIDATOR_STORAGE_DISK.test(s) && ((IStorageDiskProvider) s.getItem()).create(s).getType() == StorageDiskType.ITEMS) { private ItemHandlerBase disk = new ItemHandlerBase(1, s -> NetworkNodeDiskDrive.VALIDATOR_STORAGE_DISK.test(s) && ((IStorageDiskProvider) s.getItem()).create(s).getType() == StorageDiskType.ITEMS) {
@@ -127,9 +127,7 @@ public class PortableGrid implements IGrid, IPortableGrid {
} }
if (player != null) { if (player != null) {
for (int i = 0; i < 4; ++i) { RSUtils.readItems(filter, 0, stack.getTagCompound());
RSUtils.readItems(filter, i, stack.getTagCompound());
}
} }
RSUtils.readItems(disk, 4, stack.getTagCompound()); RSUtils.readItems(disk, 4, stack.getTagCompound());