Fix erroneous non-integer division in MapPacket.

This commit is contained in:
joo 2016-09-29 09:55:28 +01:00
parent 67bfcaac5b
commit 864af19f7f

View File

@ -657,7 +657,7 @@ class MapPacket(Packet):
if self.pixels is not None:
for i in range(len(self.pixels)):
x = self.offset[0] + i % self.width
z = self.offset[1] + i / self.width
z = self.offset[1] + i // self.width
map.pixels[x + map.width * z] = self.pixels[i]
map.is_tracking_position = self.is_tracking_position