From c66676dd55f4ffad8e3f221e64e1491390b398fd Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Tue, 22 Jul 2014 21:13:01 +0100 Subject: [PATCH] Fix some Server-side packets being sent by the client --- src/main/java/mekanism/common/tile/TileEntityBasicBlock.java | 2 +- src/main/java/mekanism/common/tile/TileEntityEnergyCube.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mekanism/common/tile/TileEntityBasicBlock.java b/src/main/java/mekanism/common/tile/TileEntityBasicBlock.java index 7cd71e50a..882b84736 100644 --- a/src/main/java/mekanism/common/tile/TileEntityBasicBlock.java +++ b/src/main/java/mekanism/common/tile/TileEntityBasicBlock.java @@ -182,7 +182,7 @@ public abstract class TileEntityBasicBlock extends TileEntity implements IWrench facing = direction; } - if(facing != clientFacing) + if(!(facing == clientFacing || worldObj.isRemote)) { Mekanism.packetHandler.sendToDimension(new TileEntityMessage(Coord4D.get(this), getNetworkedData(new ArrayList())), worldObj.provider.dimensionId); worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord)); diff --git a/src/main/java/mekanism/common/tile/TileEntityEnergyCube.java b/src/main/java/mekanism/common/tile/TileEntityEnergyCube.java index 86e921166..2fb1fd9b1 100644 --- a/src/main/java/mekanism/common/tile/TileEntityEnergyCube.java +++ b/src/main/java/mekanism/common/tile/TileEntityEnergyCube.java @@ -65,7 +65,7 @@ public class TileEntityEnergyCube extends TileEntityElectricBlock implements IPe int newScale = getScaledEnergyLevel(20); - if(newScale != prevScale) + if(!(newScale == prevScale || worldObj.isRemote)) { Mekanism.packetHandler.sendToAllAround(new TileEntityMessage(Coord4D.get(this), getNetworkedData(new ArrayList())), Coord4D.get(this).getTargetPoint(50D)); }