mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-30 04:00:50 +01:00
Fix new extensions compatibility with old G-Earth version
This commit is contained in:
parent
180144140e
commit
e342470c7f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user