improved packet rate for conveyor belts

since by default the belt renders down there is no point in sending a
packet to tell the client its already rendering correctly. This should
save on lag spikes when logging into rooms full or conveyor belts
This commit is contained in:
DarkGuardsman 2013-09-09 00:13:37 -04:00
parent 0bb1c1bc6c
commit 6f8dd90743

View file

@ -109,7 +109,11 @@ public class TileEntityConveyorBelt extends TileEntityAssembly implements IPacke
@Override
public Packet getDescriptionPacket()
{
return PacketHandler.instance().getPacket(this.getChannel(), this, slantPacketID, this.slantType.ordinal());
if (this.slantType != SlantType.NONE)
{
return PacketHandler.instance().getPacket(this.getChannel(), this, slantPacketID, this.slantType.ordinal());
}
return null;
}
public SlantType getSlant()