From b6b5db41bd2ce6216a916f135bc2c55fcb45b60b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 15 Jan 2024 20:37:33 -0600 Subject: [PATCH] load mesh data and structure meshes --- src/engine/db/handlers/dbBuildingHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/db/handlers/dbBuildingHandler.java b/src/engine/db/handlers/dbBuildingHandler.java index 5b6fe1fc..75b8f7fe 100644 --- a/src/engine/db/handlers/dbBuildingHandler.java +++ b/src/engine/db/handlers/dbBuildingHandler.java @@ -942,10 +942,10 @@ public class dbBuildingHandler extends dbHandlerBase { while (rs.next()) { int meshID = rs.getInt("meshId"); if(BuildingManager.mesh_bounding_boxes.containsKey(meshID) == false){ - float endX = Float.parseFloat(rs.getString("end").split(";")[0]); - float endZ = Float.parseFloat(rs.getString("end").split(";")[1]); - float refX = Float.parseFloat(rs.getString("ref").split(";")[0]); - float refZ = Float.parseFloat(rs.getString("ref").split(";")[1]); + float endX = Float.parseFloat(rs.getString("mesh_end_point").split(";")[0]); + float endZ = Float.parseFloat(rs.getString("mesh_end_point").split(";")[1]); + float refX = Float.parseFloat(rs.getString("mesh_ref_point").split(";")[0]); + float refZ = Float.parseFloat(rs.getString("mesh_ref_point").split(";")[1]); Vector2f topLeft = new Vector2f(refX,refZ);