update to 1.17.1 and minor fixes

This commit is contained in:
Andrew So committed 2021-12-10 14:53:18 -08:00
1 parent 99a97df753
commit c04e831e19
5 files changed
+12 -8

No files matched your search

@@ -101,7 +101,10 @@ class MapPacket(Packet):
icon = MapPacket.MapIcon(type, direction, (x, z), display_name)
self.icons.append(icon)
self.width = UnsignedByte.read(file_object)
try:
self.width = UnsignedByte.read(file_object)
except:
self.width = None
if self.width:
self.height = UnsignedByte.read(file_object)
x = Byte.read(file_object)