Fixed Security Desk not invalidating

This commit is contained in:
aidancbrady 2016-05-22 03:29:01 -04:00
parent e208ddc82d
commit 18bd17dafe
2 changed files with 3 additions and 4 deletions

View file

@ -836,7 +836,7 @@ public class BlockBasic extends Block implements IBlockCTM, ICustomBlockIcon
{
return null;
}
return BasicType.get(blockType, metadata).create();
}
@ -918,8 +918,6 @@ public class BlockBasic extends Block implements IBlockCTM, ICustomBlockIcon
}
super.breakBlock(world, x, y, z, block, meta);
world.removeTileEntity(x, y, z);
}
@Override
@ -974,7 +972,6 @@ public class BlockBasic extends Block implements IBlockCTM, ICustomBlockIcon
{
if(!player.capabilities.isCreativeMode && !world.isRemote && willHarvest)
{
float motion = 0.7F;
double motionX = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;
double motionY = (world.rand.nextFloat() * motion) + (1.0F - motion) * 0.5D;

View file

@ -276,6 +276,8 @@ public class TileEntitySecurityDesk extends TileEntityContainerBlock implements
@Override
public void invalidate()
{
super.invalidate();
if(!worldObj.isRemote)
{
if(frequency != null)