Replace xor with or in Js5ResponseEncoder

or is conventionally used to set flags, not xor.

Signed-off-by: Graham <gpe@openrs2.org>
Graham 4 years ago
parent 43672b0558
commit 6a03ef1746
  1. 2
      protocol/src/main/kotlin/org/openrs2/protocol/js5/Js5ResponseEncoder.kt

@ -20,7 +20,7 @@ public object Js5ResponseEncoder : MessageToByteEncoder<Js5Response>(Js5Response
var compression = msg.data.readUnsignedByte().toInt() var compression = msg.data.readUnsignedByte().toInt()
if (msg.prefetch) { if (msg.prefetch) {
compression = compression xor 0x80 compression = compression or 0x80
} }
out.writeByte(compression) out.writeByte(compression)

Loading…
Cancel
Save