|
|
@ -566,13 +566,16 @@ public class dbBuildingHandler extends dbHandlerBase { |
|
|
|
String[] vertStrings = rs.getString("vertices").split(";"); |
|
|
|
String[] vertStrings = rs.getString("vertices").split(";"); |
|
|
|
ArrayList<Vector2f> vertArrayList = new ArrayList<>(); |
|
|
|
ArrayList<Vector2f> vertArrayList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
// Filter things that couldn't be wrapped
|
|
|
|
for (int i = 0; i < vertStrings.length; i += 2) |
|
|
|
|
|
|
|
vertArrayList.add(new Vector2f(Float.parseFloat(vertStrings[i]), Float.parseFloat(vertStrings[1 + 1]))); |
|
|
|
if (vertStrings.length < 3) { |
|
|
|
} catch (Exception e) { |
|
|
|
Logger.error("Prop : " + propID + " has less than 3 vertices."); |
|
|
|
Logger.error("propID: " + propID); |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < vertStrings.length; i += 2) |
|
|
|
|
|
|
|
vertArrayList.add(new Vector2f(Float.parseFloat(vertStrings[i]), Float.parseFloat(vertStrings[1 + 1]))); |
|
|
|
|
|
|
|
|
|
|
|
ArrayList<ArrayList<Vector2f>> meshList; |
|
|
|
ArrayList<ArrayList<Vector2f>> meshList; |
|
|
|
|
|
|
|
|
|
|
|
if (BuildingManager._hull_data.get(propID) == null) { |
|
|
|
if (BuildingManager._hull_data.get(propID) == null) { |
|
|
|