Skip to content

Commit

Permalink
Fixed Bug in LocalZoneIndex.java where the zone-id would be calculate…
Browse files Browse the repository at this point in the history
…d wrongly
  • Loading branch information
Jakob Buchsteiner committed Sep 20, 2017
1 parent 45bbcc6 commit 7513c3e
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 7513c3e

Please sign in to comment.