Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Fixed encoding not properly working with other packet reading libraries
Injecting a message to byte encoder beforehand would break outbound packets in ViaVersion. This solution is a good fix which won't impact anything.
Dieser Commit ist enthalten in:
Ursprung
c0fb81946e
Commit
91319402f3
@ -54,8 +54,10 @@ public class BukkitEncodeHandler extends MessageToByteEncoder implements ViaHand
|
|||||||
throw (Error) e.getCause();
|
throw (Error) e.getCause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
bytebuf.clear().writeBytes((ByteBuf) o);
|
||||||
|
}
|
||||||
transform(bytebuf);
|
transform(bytebuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren