ground items: REGION_SIZE - 1 since this is inclusive now

This commit is contained in:
Adam
2018-01-28 12:07:20 -05:00
parent 986c99be5d
commit 90b6cd30a4

View File

@@ -160,8 +160,8 @@ public class GroundItemsOverlay extends Overlay
int lowerX = max(0, from.getX() - MAX_RANGE);
int lowerY = max(0, from.getY() - MAX_RANGE);
int upperX = min(from.getX() + MAX_RANGE, REGION_SIZE);
int upperY = min(from.getY() + MAX_RANGE, REGION_SIZE);
int upperX = min(from.getX() + MAX_RANGE, REGION_SIZE - 1);
int upperY = min(from.getY() + MAX_RANGE, REGION_SIZE - 1);
for (int x = lowerX; x <= upperX; ++x)
{