mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Fix erroneous non-integer division in MapPacket.
This commit is contained in:
parent
67bfcaac5b
commit
864af19f7f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user