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);