From 50817352c14744e912346488bac2f2a82b1d8eab Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 12 Sep 2024 19:16:38 -0500 Subject: [PATCH] teleport to mines --- src/engine/net/client/msg/TeleportRepledgeListMsg.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/net/client/msg/TeleportRepledgeListMsg.java b/src/engine/net/client/msg/TeleportRepledgeListMsg.java index 3008bc02..69b73e43 100644 --- a/src/engine/net/client/msg/TeleportRepledgeListMsg.java +++ b/src/engine/net/client/msg/TeleportRepledgeListMsg.java @@ -84,11 +84,14 @@ public class TeleportRepledgeListMsg extends ClientNetMsg { cities = City.getCitiesToTeleportTo(player); try { mines = Mine.getMinesToTeleportTo(player); + if(mines == null) + mines = new ArrayList<>(); }catch(Exception e){ Logger.error("Unable To Load Mines For Teleport: " + e.getMessage()); } }else { cities = City.getCitiesToRepledgeTo(player); + mines = new ArrayList<>(); } }