From e342470c7f382e6356700d5b9d648ff5cdfe88c3 Mon Sep 17 00:00:00 2001 From: UnfamiliarLegacy <74633542+UnfamiliarLegacy@users.noreply.github.com> Date: Thu, 18 Jul 2024 00:03:43 +0200 Subject: [PATCH] Fix new extensions compatibility with old G-Earth version --- G-Earth/src/main/java/gearth/extensions/Extension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/extensions/Extension.java b/G-Earth/src/main/java/gearth/extensions/Extension.java index 82bb553..1146f53 100644 --- a/G-Earth/src/main/java/gearth/extensions/Extension.java +++ b/G-Earth/src/main/java/gearth/extensions/Extension.java @@ -180,7 +180,7 @@ public abstract class Extension extends ExtensionBase { } else if (packet.headerId() == Outgoing.PacketIntercept.HEADER_ID) { String stringifiedMessage = packet.readLongString(); - HPacketFormat packetFormat = HPacketFormat.fromId(packet.readInteger()); + HPacketFormat packetFormat = packet.isEOF() == 0 ? HPacketFormat.fromId(packet.readInteger()) : HPacketFormat.EVA_WIRE; HMessage habboMessage = new HMessage(packetFormat, stringifiedMessage); modifyMessage(habboMessage);