Browse Source

Teleport to the target gate.

master
MagicBot 2 years ago
parent
commit
7b16c55dc6
  1. 2
      src/engine/db/handlers/dbRunegateHandler.java

2
src/engine/db/handlers/dbRunegateHandler.java

@ -57,7 +57,7 @@ public class dbRunegateHandler extends dbHandlerBase {
ResultSet rs = executeQuery(); ResultSet rs = executeQuery();
while (rs.next()) { while (rs.next()) {
int targetBuildingID = rs.getInt("sourceBuilding"); int targetBuildingID = rs.getInt("targetBuilding");
Building targetBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, targetBuildingID); Building targetBuilding = (Building) DbManager.getObject(Enum.GameObjectType.Building, targetBuildingID);
Enum.PortalType portalType = Enum.PortalType.valueOf(rs.getString("portalType")); Enum.PortalType portalType = Enum.PortalType.valueOf(rs.getString("portalType"));
Portal portal = new Portal(sourceBuilding, portalType, targetBuilding); Portal portal = new Portal(sourceBuilding, portalType, targetBuilding);

Loading…
Cancel
Save