Fix for boots of lightness (#272)

This commit is contained in:
Danial authored and Daniel Ginovker committed 2019-12-12 04:32:06 -05:00
1 parent c891e4741e
commit 8ec8a92d20
4 files changed
+13 -25

No files matched your search

@@ -794,6 +794,7 @@ public class PacketSender {
if (player.getOutStream() == null) return this;
player.outStream.createFrame(240);
DecimalFormat twoDForm = new DecimalFormat("#.##");
weight = Math.max(0, weight);
player.outStream.writeWord(Integer.valueOf(twoDForm.format(weight)));
return this;
}