Update changelog

This commit is contained in:
raoulvdberge
2017-07-08 10:51:30 +02:00
parent d6cec69b5d
commit a54d046739
2 changed files with 7 additions and 5 deletions

View File

@@ -2,9 +2,9 @@
### 1.5.8 ### 1.5.8
- Updated Forge to 2400 (raoulvdberge) - Updated Forge to 2400 (raoulvdberge)
- Updated Storage Drawers API (raoulvdberge) - Updated Storage Drawers API (raoulvdberge, jaquadro)
- Fixed bug where disks have to be re-inserted in the Disk Drive in order to work again after rejoining a chunk (raoulvdberge) - Fixed bug where disks have to be re-inserted in the Disk Drive in order to work again after rejoining a chunk (raoulvdberge)
- Fixed bug where items inserted in Storage Drawers through External Storage with a Drawer Controller wouldn't respect drawer priority rules (raoulvdberge) - Fixed bug where items inserted in Storage Drawers through External Storage with a Drawer Controller wouldn't respect drawer priority rules (raoulvdberge, jaquadro)
- Fixed crash on server when getting an advancement (raoulvdberge) - Fixed crash on server when getting an advancement (raoulvdberge)
- Removed migration support for worlds from MC 1.10.2. To migrate your world to MC 1.12 from MC 1.10.2, first open it in MC 1.11.2 (raoulvdberge) - Removed migration support for worlds from MC 1.10.2. To migrate your world to MC 1.12 from MC 1.10.2, first open it in MC 1.11.2 (raoulvdberge)
- Autocrafting can now fill water bottles with water from the fluid storage - regular bottles or pattern for regular bottles are required (raoulvdberge) - Autocrafting can now fill water bottles with water from the fluid storage - regular bottles or pattern for regular bottles are required (raoulvdberge)

View File

@@ -27,9 +27,9 @@ public class StorageItemItemRepository extends StorageItemExternal {
private NetworkNodeExternalStorage externalStorage; private NetworkNodeExternalStorage externalStorage;
private Supplier<IDrawerGroup> groupSupplier; private Supplier<IDrawerGroup> groupSupplier;
public StorageItemItemRepository(NetworkNodeExternalStorage externalStorage, Supplier<IDrawerGroup> repositorySupplier) { public StorageItemItemRepository(NetworkNodeExternalStorage externalStorage, Supplier<IDrawerGroup> groupSupplier) {
this.externalStorage = externalStorage; this.externalStorage = externalStorage;
this.groupSupplier = repositorySupplier; this.groupSupplier = groupSupplier;
} }
@Override @Override
@@ -100,6 +100,7 @@ public class StorageItemItemRepository extends StorageItemExternal {
for (int slot : group.getAccessibleDrawerSlots()) { for (int slot : group.getAccessibleDrawerSlots()) {
IDrawer drawer = group.getDrawer(slot); IDrawer drawer = group.getDrawer(slot);
if (drawer.isEnabled()) { if (drawer.isEnabled()) {
capacity += drawer.getMaxCapacity(); capacity += drawer.getMaxCapacity();
} }
@@ -109,11 +110,12 @@ public class StorageItemItemRepository extends StorageItemExternal {
return Integer.MAX_VALUE; return Integer.MAX_VALUE;
} }
return (int)capacity; return (int) capacity;
} }
private IItemRepository getRepositoryFromSupplier() { private IItemRepository getRepositoryFromSupplier() {
IDrawerGroup group = groupSupplier.get(); IDrawerGroup group = groupSupplier.get();
if (group == null) { if (group == null) {
return null; return null;
} }