Browse Source

load mesh data and structure meshes

server-collision
FatBoy-DOTC 10 months ago
parent
commit
06df109a18
  1. 2
      src/engine/db/handlers/dbBuildingHandler.java

2
src/engine/db/handlers/dbBuildingHandler.java

@ -941,8 +941,6 @@ public class dbBuildingHandler extends dbHandlerBase { @@ -941,8 +941,6 @@ public class dbBuildingHandler extends dbHandlerBase {
BuildingManager.mesh_bounding_boxes = new HashMap<>();
while (rs.next()) {
if(BuildingManager.mesh_bounding_boxes.containsKey(rs.getInt("meshId")) == false){
float centerX = Float.parseFloat(rs.getString("start").split(";")[0]);
float centerZ = Float.parseFloat(rs.getString("start").split(";")[1]);
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]);

Loading…
Cancel
Save