Fixed External Storage not working without Storage Drawers

This commit is contained in:
raoulvdberge
2017-08-08 22:38:35 +02:00
parent 22e9f929d5
commit 4f168c8a82
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
- Fixed possible rare dupe bug with Importer (raoulvdberge) - Fixed possible rare dupe bug with Importer (raoulvdberge)
- Fixed Shulker Box dupe bug with Destructor (raoulvdberge) - Fixed Shulker Box dupe bug with Destructor (raoulvdberge)
- Fixed Grid crash with search history (raoulvdberge) - Fixed Grid crash with search history (raoulvdberge)
- Fixed External Storage not working without Storage Drawers (raoulvdberge)
### 1.5.14 ### 1.5.14
- Updated Forge to 2426 (raoulvdberge) - Updated Forge to 2426 (raoulvdberge)

View File

@@ -205,7 +205,7 @@ public class NetworkNodeExternalStorage extends NetworkNode implements IStorageP
} }
if (type == IType.ITEMS) { if (type == IType.ITEMS) {
if (facing.hasCapability(DRAWER_GROUP_CAPABILITY, getDirection().getOpposite())) { if (DRAWER_GROUP_CAPABILITY != null && facing.hasCapability(DRAWER_GROUP_CAPABILITY, getDirection().getOpposite())) {
itemStorages.add(new StorageItemItemRepository(this, () -> { itemStorages.add(new StorageItemItemRepository(this, () -> {
TileEntity f = getFacingTile(); TileEntity f = getFacingTile();