From ee4a7447bcc17f58b8c94f7cea2c3f109434ad99 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 12 Sep 2024 19:08:57 -0500 Subject: [PATCH] teleport to mines --- src/engine/net/client/msg/TeleportRepledgeListMsg.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/msg/TeleportRepledgeListMsg.java b/src/engine/net/client/msg/TeleportRepledgeListMsg.java index efccf8e4..3008bc02 100644 --- a/src/engine/net/client/msg/TeleportRepledgeListMsg.java +++ b/src/engine/net/client/msg/TeleportRepledgeListMsg.java @@ -18,6 +18,7 @@ import engine.net.client.Protocol; import engine.objects.City; import engine.objects.Mine; import engine.objects.PlayerCharacter; +import org.pmw.tinylog.Logger; import java.util.ArrayList; @@ -81,7 +82,11 @@ public class TeleportRepledgeListMsg extends ClientNetMsg { if (isTeleport) { cities = City.getCitiesToTeleportTo(player); - mines = Mine.getMinesToTeleportTo(player); + try { + mines = Mine.getMinesToTeleportTo(player); + }catch(Exception e){ + Logger.error("Unable To Load Mines For Teleport: " + e.getMessage()); + } }else { cities = City.getCitiesToRepledgeTo(player); }