utilize min and max Y values for meshes

This commit is contained in:
2024-01-05 23:03:51 -06:00
parent 253ca2344e
commit fd47c90f4f
6 changed files with 16 additions and 11 deletions
@@ -923,7 +923,8 @@ public class dbBuildingHandler extends dbHandlerBase {
while (rs.next()) {
if(BuildingManager.mesh_heights.containsKey(rs.getInt("meshID")) == false){
BuildingManager.mesh_heights.put(rs.getInt("meshID"),rs.getFloat("maxY"));
Vector2f heights = new Vector2f(rs.getFloat("maxY"),rs.getFloat("minY"));
BuildingManager.mesh_heights.put(rs.getInt("meshID"),heights);
}
}