@ -32,9 +32,8 @@ 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`, " +
PreparedStatement preparedStatement = connection . prepareStatement ( "SELECT `MIN(ID)`,`BuildingID`,`slot`,`MIN(type)`,`MIN(unknown)`,`MIN(locX)`,`MIN(locY)`,`MIN(locZ)`,`MIN(w)`,`MIN(rotX)`,`MIN(rotY)`,`MIN(rotZ)` FROM static_building_location " +
"`rotX`, `rotY`, `rotZ`, `rotW`, `scaleX`, `scaleY`, `scaleZ`, `unknown2`, `unknown3`, `unknown4` FROM static_building_location " +
"WHERE type IN (6, 8) " +
"WHERE type = 6 OR type = 8 " +
"GROUP BY BuildingID, slot " +
"GROUP BY BuildingID, slot " +
"ORDER BY BuildingID, slot ASC;" ) ) {
"ORDER BY BuildingID, slot ASC;" ) ) {