WorldServer worldServer = ((WorldServer) worldObj);
if (worldServer == null) {
return;
}
Block blockType = getBlockType();
worldServer.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, blockType == null ? worldServer.getBlockId(xCoord, yCoord, zCoord) : blockType.blockID);
PlayerInstance p = worldServer.getPlayerManager().getOrCreateChunkWatcher(xCoord >> 4, zCoord >> 4, false);
if (p != null) {
p.updateTile(this);
}
}