Fixed disk manipulator crash, fixes #1040
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
- Fixed OPs not having global permissions on secured storage systems (raoulvdberge)
|
||||
- Fixed crash when Destructor tries to break secured network block (raoulvdberge)
|
||||
- Fixed Fluid Interface not dropping inventory contents (raoulvdberge)
|
||||
- Fixed Disk Manipulator crash (raoulvdberge)
|
||||
- Updated Forge to 2232 (raoulvdberge)
|
||||
|
||||
### 1.4
|
||||
|
||||
@@ -42,7 +42,15 @@ public class BlockDiskManipulator extends BlockNode {
|
||||
|
||||
@Override
|
||||
public IBlockState getExtendedState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
return ((IExtendedBlockState) super.getExtendedState(state, world, pos)).withProperty(DISK_STATE, ((TileDiskManipulator) world.getTileEntity(pos)).getDiskState());
|
||||
IBlockState s = super.getExtendedState(state, world, pos);
|
||||
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
|
||||
if (tile instanceof TileDiskManipulator) {
|
||||
s = ((IExtendedBlockState) s).withProperty(DISK_STATE, ((TileDiskManipulator) tile).getDiskState());
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user