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