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:
parent
0bb1c1bc6c
commit
6f8dd90743
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue