Fix some Server-side packets being sent by the client
This commit is contained in:
parent
327389a88c
commit
c66676dd55
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue