aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'main/java/gregtech/common/blocks')
-rw-r--r--main/java/gregtech/common/blocks/GT_TileEntity_Ores.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java b/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java
index 07976c8ee2..6edce96441 100644
--- a/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java
+++ b/main/java/gregtech/common/blocks/GT_TileEntity_Ores.java
@@ -60,7 +60,7 @@ public class GT_TileEntity_Ores
public Packet getDescriptionPacket()
{
if (!this.worldObj.isRemote) {
- if (GT_Utility.isBlockOccluded(worldObj, xCoord, yCoord, zCoord, false, true)) {
+ if ((this.mBlocked == (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord + 1, this.yCoord, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord - 1, this.yCoord, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord + 1, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord - 1, this.zCoord)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord, this.zCoord + 1)) && (GT_Utility.isOpaqueBlock(this.worldObj, this.xCoord, this.yCoord, this.zCoord - 1)) ? 1 : 0) == 0) {
GT_Values.NW.sendPacketToAllPlayersInRange(this.worldObj, new GT_Packet_Ores(this.xCoord, (short)this.yCoord, this.zCoord, this.mMetaData), this.xCoord, this.zCoord);
}
}