Fixed crash relating to MCMP, fixes #1364
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
### 1.5.10
|
### 1.5.10
|
||||||
- Converted Solderer recipes to JSON (raoulvdberge)
|
- Converted Solderer recipes to JSON (raoulvdberge)
|
||||||
- Implemented controller update throttling, should fix lag issues with controllers that constantly turn off and on (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
|
### 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)
|
- Fixed not being able to extract anything when connecting an External Storage to Storage Drawers (raoulvdberge)
|
||||||
|
|
||||||
### 1.5.8
|
### 1.5.8
|
||||||
|
|||||||
@@ -125,8 +125,8 @@ public class RSMCMPAddon implements IMCMPAddon {
|
|||||||
public static TileEntity unwrapTile(IBlockAccess world, BlockPos pos) {
|
public static TileEntity unwrapTile(IBlockAccess world, BlockPos pos) {
|
||||||
TileEntity tile = world.getTileEntity(pos);
|
TileEntity tile = world.getTileEntity(pos);
|
||||||
|
|
||||||
if (tile instanceof TileMultipartContainer.Ticking) {
|
if (tile instanceof TileMultipartContainer) {
|
||||||
Optional<IMultipartTile> multipartTile = ((TileMultipartContainer.Ticking) tile).getPartTile(EnumCenterSlot.CENTER);
|
Optional<IMultipartTile> multipartTile = ((TileMultipartContainer) tile).getPartTile(EnumCenterSlot.CENTER);
|
||||||
|
|
||||||
if (multipartTile.isPresent()) {
|
if (multipartTile.isPresent()) {
|
||||||
return multipartTile.get().getTileEntity();
|
return multipartTile.get().getTileEntity();
|
||||||
|
|||||||
Reference in New Issue
Block a user