From 6a03ef1746e34889478f3b0e60f6dfca1957100f Mon Sep 17 00:00:00 2001 From: Graham Date: Tue, 22 Dec 2020 23:20:12 +0000 Subject: [PATCH] Replace xor with or in Js5ResponseEncoder or is conventionally used to set flags, not xor. Signed-off-by: Graham --- .../main/kotlin/org/openrs2/protocol/js5/Js5ResponseEncoder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/kotlin/org/openrs2/protocol/js5/Js5ResponseEncoder.kt b/protocol/src/main/kotlin/org/openrs2/protocol/js5/Js5ResponseEncoder.kt index 94c55dab..d2650ef1 100644 --- a/protocol/src/main/kotlin/org/openrs2/protocol/js5/Js5ResponseEncoder.kt +++ b/protocol/src/main/kotlin/org/openrs2/protocol/js5/Js5ResponseEncoder.kt @@ -20,7 +20,7 @@ public object Js5ResponseEncoder : MessageToByteEncoder(Js5Response var compression = msg.data.readUnsignedByte().toInt() if (msg.prefetch) { - compression = compression xor 0x80 + compression = compression or 0x80 } out.writeByte(compression)