|
|
|
@ -32,10 +32,11 @@ public class dbBuildingLocationHandler extends dbHandlerBase { |
|
|
|
ArrayList<BuildingLocation> buildingLocations = new ArrayList<>(); |
|
|
|
ArrayList<BuildingLocation> buildingLocations = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("select `ID`, `BuildingID`, `type`, `slot`, `unknown`, `locX`, `locY`, `locZ`, `w`, `rotX`, `rotY`, `rotZ` from static_building_location " + |
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("SELECT `ID`, `BuildingID`, `type`, `slot`, `unknown`, `locX`, `locY`, `locZ`, `w`, " + |
|
|
|
"where type = 6 or type = 8 " + |
|
|
|
"`rotX`, `rotY`, `rotZ`, `rotW`, `scaleX`, `scaleY`, `scaleZ`, `unknown2`, `unknown3`, `unknown4` FROM static_building_location " + |
|
|
|
"GROUP BY buildingID, slot " + |
|
|
|
"WHERE type = 6 OR type = 8 " + |
|
|
|
"ORDER BY buildingID, slot ASC;")) { |
|
|
|
"GROUP BY BuildingID, slot " + |
|
|
|
|
|
|
|
"ORDER BY BuildingID, slot ASC;")) { |
|
|
|
|
|
|
|
|
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
ResultSet rs = preparedStatement.executeQuery(); |
|
|
|
buildingLocations = getObjectsFromRs(rs, 20); |
|
|
|
buildingLocations = getObjectsFromRs(rs, 20); |
|
|
|
|