Skip to content

Commit 7513c3e

Browse files
author
Jakob Buchsteiner
committed
Fixed Bug in LocalZoneIndex.java where the zone-id would be calculated wrongly
1 parent 45bbcc6 commit 7513c3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/simsilica/ethereal/LocalZoneIndex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public int getZoneId( ZoneKey zone ) {
146146
int y = zone.y - yBase;
147147
int z = zone.z - zBase;
148148

149-
return minZoneId + z * (xSize * ySize) + y * ySize + x;
149+
return minZoneId + z * (xSize * ySize) + y * xSize + x;
150150
}
151151

152152
public ZoneKey getCenter() {

0 commit comments

Comments
 (0)