Compare commits

..

No commits in common. "908226e40156a4b2d6d00f1304ef1dd97c4014aa" and "91c0c0c510a605ab84f38c81f2c1c01a2430446e" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

@ -103,10 +103,6 @@ public class MaplePacketLittleEndianWriter {
}
public final void writeUTF8(final String s) {
if (s == null ||s.isEmpty()){
this.writeShort(0);
return;
}
this.writeShort((int) (short)s.getBytes(StandardCharsets.UTF_8).length);
this.write(s.getBytes(StandardCharsets.UTF_8));
}

View File

@ -479,9 +479,9 @@ public class PacketHelper {
}
mplew.writeLong(getTime(-2L));
mplew.writeInt(-1);
mplew.writeUTF8(equip.getdd());
mplew.writeUTF8(equip.getdb());
mplew.writeUTF8(equip.getqg());
mplew.writeUTF8("947330670");
mplew.writeUTF8("123456");
mplew.writeUTF8("514234");
} else {
mplew.writeShort((int) item.getQuantity());
mplew.writeMapleAsciiString(item.getOwner());