corrections

This commit is contained in:
sirjonasxx 2020-10-06 23:03:45 +02:00
parent 17a7406578
commit b31b3d6526

View File

@ -95,7 +95,7 @@ public class NetworkExtension extends GEarthExtension {
packetToStringRequest(p); packetToStringRequest(p);
} }
else if (message.headerId() == NetworkExtensionInfo.INCOMING_MESSAGES_IDS.STRINGTOPACKET_REQUEST) { else if (message.headerId() == NetworkExtensionInfo.INCOMING_MESSAGES_IDS.STRINGTOPACKET_REQUEST) {
stringToPacketRequest(message.readLongString()); stringToPacketRequest(message.readLongString(StandardCharsets.UTF_8));
} }
} }
@ -232,7 +232,7 @@ public class NetworkExtension extends GEarthExtension {
@Override @Override
public void stringToPacketResponse(HPacket packetFromString) { public void stringToPacketResponse(HPacket packetFromString) {
HPacket packet = new HPacket(NetworkExtensionInfo.OUTGOING_MESSAGES_IDS.STRINGTOPACKET_RESPONSE); HPacket packet = new HPacket(NetworkExtensionInfo.OUTGOING_MESSAGES_IDS.STRINGTOPACKET_RESPONSE);
packet.appendLongString(packet.stringify()); packet.appendLongString(packetFromString.stringify());
sendMessage(packet); sendMessage(packet);
} }
} }