Fixed type on patch conversion messing up tile entities
This commit is contained in:
parent
29556e6170
commit
ba285c455c
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@
|
|||
int var7 = var5.getExtBlockID(par1, par2 & 15, par3);
|
||||
|
||||
- if (var7 > 0 && Block.blocksList[var7] instanceof BlockContainer)
|
||||
+ if (var7 > 0 && Block.blocksList[var7] != null && Block.blocksList[var7].hasTileEntity(var5.getExtBlockMetadata(par1, par3 & 15, par3)))
|
||||
+ if (var7 > 0 && Block.blocksList[var7] != null && Block.blocksList[var7].hasTileEntity(var5.getExtBlockMetadata(par1, par2 & 15, par3)))
|
||||
{
|
||||
TileEntity var8 = this.getChunkBlockTileEntity(par1, par2, par3);
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
int var7 = var5.getExtBlockID(par1, par2 & 15, par3);
|
||||
|
||||
- if (var7 > 0 && Block.blocksList[var7] instanceof BlockContainer)
|
||||
+ if (var7 > 0 && Block.blocksList[var7] != null && Block.blocksList[var7].hasTileEntity(var5.func_48598_b(par1, par3 & 15, par3)))
|
||||
+ if (var7 > 0 && Block.blocksList[var7] != null && Block.blocksList[var7].hasTileEntity(var5.func_48598_b(par1, par2 & 15, par3)))
|
||||
{
|
||||
TileEntity var8 = this.getChunkBlockTileEntity(par1, par2, par3);
|
||||
|
||||
|
|
Loading…
Reference in a new issue