From b31b3d6526a8ccac589bf231b5f26bbcd913e945 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Tue, 6 Oct 2020 23:03:45 +0200 Subject: [PATCH] corrections --- .../extensions/implementations/network/NetworkExtension.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/G-Earth/src/main/java/gearth/services/extensionhandler/extensions/implementations/network/NetworkExtension.java b/G-Earth/src/main/java/gearth/services/extensionhandler/extensions/implementations/network/NetworkExtension.java index af4600c..209dc4f 100644 --- a/G-Earth/src/main/java/gearth/services/extensionhandler/extensions/implementations/network/NetworkExtension.java +++ b/G-Earth/src/main/java/gearth/services/extensionhandler/extensions/implementations/network/NetworkExtension.java @@ -95,7 +95,7 @@ public class NetworkExtension extends GEarthExtension { packetToStringRequest(p); } 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 public void stringToPacketResponse(HPacket packetFromString) { HPacket packet = new HPacket(NetworkExtensionInfo.OUTGOING_MESSAGES_IDS.STRINGTOPACKET_RESPONSE); - packet.appendLongString(packet.stringify()); + packet.appendLongString(packetFromString.stringify()); sendMessage(packet); } } \ No newline at end of file