mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-09 19:48:37 +01:00
redo ugly packet hack
This commit is contained in:
parent
4ca4ea7323
commit
ba14be1782
@ -425,9 +425,9 @@ fun Protocol1_8To1_7_6.registerPlayerPackets() {
|
||||
packetWrapper.id = -1
|
||||
val newPacketBuf = Unpooled.buffer()
|
||||
packetWrapper.writeToBuffer(newPacketBuf)
|
||||
val newWrapper = PacketWrapper(0x17, null, packetWrapper.user())
|
||||
val newWrapper = PacketWrapper(0x17, newPacketBuf, packetWrapper.user())
|
||||
newWrapper.passthrough(Type.STRING)
|
||||
newWrapper.write(Type.SHORT_BYTE_ARRAY, readRemainingBytes(newPacketBuf))
|
||||
newWrapper.write(Type.SHORT, newPacketBuf.readableBytes().toShort())
|
||||
newWrapper.sendToServer(Protocol1_8To1_7_6::class.java, true, true)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user