Skip to content

Commit 10d63a4

Browse files
authored
Merge pull request #2 from JBuchi/zone-radius-patch
Fixed wrong calculation of the zone-id in LocalZoneIndex.java
2 parents 93f74ef + 7513c3e commit 10d63a4

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)