From eae010069b1dc754e9186f3a3db0e34b7826bd85 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 1 Nov 2025 21:02:24 -0500 Subject: [PATCH] bardiel's requested slot lookup query amendment --- src/engine/db/handlers/dbBuildingLocationHandler.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/engine/db/handlers/dbBuildingLocationHandler.java b/src/engine/db/handlers/dbBuildingLocationHandler.java index c1bf7b04..70ac7a45 100644 --- a/src/engine/db/handlers/dbBuildingLocationHandler.java +++ b/src/engine/db/handlers/dbBuildingLocationHandler.java @@ -32,10 +32,11 @@ public class dbBuildingLocationHandler extends dbHandlerBase { ArrayList 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);