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