mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50:52 +01:00
Update HPacket.java
This commit is contained in:
parent
56cc99e0e6
commit
21b0b22a2c
@ -491,7 +491,6 @@ public class HPacket implements StringifyAble {
|
||||
return this;
|
||||
}
|
||||
public HPacket appendString(String s) {
|
||||
s = new String(s.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1);
|
||||
return appendString(s, StandardCharsets.ISO_8859_1);
|
||||
}
|
||||
|
||||
@ -516,7 +515,7 @@ public class HPacket implements StringifyAble {
|
||||
appendInt((Integer)o);
|
||||
}
|
||||
else if (o instanceof String) {
|
||||
appendString((String)o);
|
||||
appendString((String)o, StandardCharsets.UTF_8);
|
||||
}
|
||||
else if (o instanceof Boolean) {
|
||||
appendBoolean((Boolean) o);
|
||||
@ -618,4 +617,4 @@ public class HPacket implements StringifyAble {
|
||||
System.out.println(packetverify.toString().equals(packet.toString()));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user