From 9c57c4a3792a2c74f397bb1f18042592481b5e4d Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 1 Nov 2025 21:05:46 -0500 Subject: [PATCH] bardiel's requested slot lookup query amendment update --- src/engine/db/handlers/dbBuildingLocationHandler.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/db/handlers/dbBuildingLocationHandler.java b/src/engine/db/handlers/dbBuildingLocationHandler.java index 70ac7a45..882fd289 100644 --- a/src/engine/db/handlers/dbBuildingLocationHandler.java +++ b/src/engine/db/handlers/dbBuildingLocationHandler.java @@ -32,9 +32,8 @@ 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`, `rotW`, `scaleX`, `scaleY`, `scaleZ`, `unknown2`, `unknown3`, `unknown4` FROM static_building_location " + - "WHERE type = 6 OR type = 8 " + + 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 " + + "WHERE type IN (6, 8) " + "GROUP BY BuildingID, slot " + "ORDER BY BuildingID, slot ASC;")) {