mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 11:29:30 +00:00
Fix sending progress packets on the client
This commit is contained in:
1 parent
5e24d1fee8
commit
cc07b9bd77
1 file changed
+1
-2
@@ -6,7 +6,6 @@ import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import crazypants.enderio.machine.PacketProgress;
|
||||
import crazypants.enderio.machine.gui.AbstractMachineContainer;
|
||||
import crazypants.enderio.network.PacketHandler;
|
||||
import crazypants.util.BlockCoord;
|
||||
import crazypants.util.IProgressTile;
|
||||
@@ -36,7 +35,7 @@ public abstract class TileEntityEio extends TileEntity {
|
||||
@Override
|
||||
public final void updateEntity() {
|
||||
doUpdate();
|
||||
if(isProgressTile) {
|
||||
if(isProgressTile && !worldObj.isRemote) {
|
||||
int curScaled = getProgressScaled(16);
|
||||
if(++ticksSinceLastProgressUpdate >= getProgressUpdateFreq() || curScaled != lastProgressScaled) {
|
||||
sendTaskProgressPacket();
|
||||
|
||||
Reference in new issue
Block a user