Skip to content

Commit

Permalink
Merge pull request #2 from JBuchi/zone-radius-patch
Browse files Browse the repository at this point in the history
Fixed wrong calculation of the zone-id in LocalZoneIndex.java
  • Loading branch information
pspeed42 authored Nov 18, 2018
2 parents 93f74ef + 7513c3e commit 10d63a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/simsilica/ethereal/LocalZoneIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public int getZoneId( ZoneKey zone ) {
int y = zone.y - yBase;
int z = zone.z - zBase;

return minZoneId + z * (xSize * ySize) + y * ySize + x;
return minZoneId + z * (xSize * ySize) + y * xSize + x;
}

public ZoneKey getCenter() {
Expand Down

0 comments on commit 10d63a4

Please sign in to comment.