Fixed crash relating to MCMP, fixes #1364
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user