Clamp fix for new method

This commit is contained in:
2023-11-18 13:20:17 -05:00
parent 496b49b349
commit 6572f0c805
+2 -2
View File
@@ -164,8 +164,8 @@ public class Terrain {
// Clamp values when standing directly on pole
terrain_cell.x = Math.max(0, Math.min(this.cell_count.x - 1, terrain_cell.x));
terrain_cell.y = Math.max(0, Math.min(this.cell_count.y - 1, terrain_cell.y));
terrain_cell.x = Math.max(0, Math.min(this.cell_count.x - 2, terrain_cell.x));
terrain_cell.y = Math.max(0, Math.min(this.cell_count.y - 2, terrain_cell.y));
return terrain_cell;
}