mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-27 10:50: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) {
|
else if (packet.headerId() == Outgoing.PacketIntercept.HEADER_ID) {
|
||||||
String stringifiedMessage = packet.readLongString();
|
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);
|
HMessage habboMessage = new HMessage(packetFormat, stringifiedMessage);
|
||||||
|
|
||||||
modifyMessage(habboMessage);
|
modifyMessage(habboMessage);
|
||||||
|
Loading…
Reference in New Issue
Block a user