Fixed crash relating to MCMP, fixes #1364

This commit is contained in:
raoulvdberge
2017-07-15 12:39:46 +02:00
parent e360d231ad
commit 58604d0e78
2 changed files with 3 additions and 3 deletions

View File

@@ -3,9 +3,9 @@
### 1.5.10
- Converted Solderer recipes to JSON (raoulvdberge)
- Implemented controller update throttling, should fix lag issues with controllers that constantly turn off and on (raoulvdberge)
- Fixed crash relating to MCMP (raoulvdberge)
### 1.5.9
- Fixed crash relating to MCMP (raoulvdberge)
- Fixed not being able to extract anything when connecting an External Storage to Storage Drawers (raoulvdberge)
### 1.5.8

View File

@@ -125,8 +125,8 @@ public class RSMCMPAddon implements IMCMPAddon {
public static TileEntity unwrapTile(IBlockAccess world, BlockPos pos) {
TileEntity tile = world.getTileEntity(pos);
if (tile instanceof TileMultipartContainer.Ticking) {
Optional<IMultipartTile> multipartTile = ((TileMultipartContainer.Ticking) tile).getPartTile(EnumCenterSlot.CENTER);
if (tile instanceof TileMultipartContainer) {
Optional<IMultipartTile> multipartTile = ((TileMultipartContainer) tile).getPartTile(EnumCenterSlot.CENTER);
if (multipartTile.isPresent()) {
return multipartTile.get().getTileEntity();