Fix for #885
Checks if tile entity has changed or if player is too far away.
This commit is contained in:
parent
a317d47b3b
commit
75702ef5ef
|
@ -146,7 +146,7 @@ public class TileEntityAlchemicalChest extends TileEntityEE implements IInventor
|
||||||
@Override
|
@Override
|
||||||
public boolean isUseableByPlayer(EntityPlayer entityplayer)
|
public boolean isUseableByPlayer(EntityPlayer entityplayer)
|
||||||
{
|
{
|
||||||
return true;
|
return this.worldObj.getTileEntity(xCoord, yCoord, zCoord) == this && entityplayer.getDistanceSq((double) xCoord + 0.5D, (double) yCoord + 0.5D, (double) zCoord + 0.5D) <= 64D;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue