mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-09 07:20:04 -04:00
suppress false warning: Packet PLAY_ENTITY_METADATA did not used all bytes sent
This commit is contained in:
parent
5be76225fa
commit
44bcaf43ee
@ -160,7 +160,7 @@ public class Network {
|
||||
try {
|
||||
ClientboundPacket packet = clazz.getConstructor().newInstance();
|
||||
packet.read(inPacketBuffer, connection.getVersion());
|
||||
if (inPacketBuffer.getBytesLeft() > 0) {
|
||||
if (inPacketBuffer.getBytesLeft() > 0 && p != Packets.Clientbound.PLAY_ENTITY_METADATA) { // entity meta data uses mostly all data, but this happens in the handling thread
|
||||
// warn not all data used
|
||||
Log.protocol(String.format("[IN] Packet %s did not used all bytes sent", ((p != null) ? p.name() : "UNKNOWN")));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user