From 7b16c55dc61e98a92e0b45829f8606504e44028e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 15 Feb 2023 13:49:34 -0500 Subject: [PATCH] Teleport to the target gate. --- src/engine/db/handlers/dbRunegateHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbRunegateHandler.java b/src/engine/db/handlers/dbRunegateHandler.java index 67151bbd..32ec6324 100644 --- a/src/engine/db/handlers/dbRunegateHandler.java +++ b/src/engine/db/handlers/dbRunegateHandler.java @@ -57,7 +57,7 @@ public class dbRunegateHandler extends dbHandlerBase { ResultSet rs = executeQuery(); while (rs.next()) { - int targetBuildingID = rs.getInt("sourceBuilding"); + int targetBuildingID = rs.getInt("targetBuilding"); Building targetBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, targetBuildingID); Enum.PortalType portalType = Enum.PortalType.valueOf(rs.getString("portalType")); Portal portal = new Portal(sourceBuilding, portalType, targetBuilding);