Browse Source

teleport to mines

lakebane-mine-tele
FatBoy-DOTC 2 months ago
parent
commit
50817352c1
  1. 3
      src/engine/net/client/msg/TeleportRepledgeListMsg.java

3
src/engine/net/client/msg/TeleportRepledgeListMsg.java

@ -84,11 +84,14 @@ public class TeleportRepledgeListMsg extends ClientNetMsg {
cities = City.getCitiesToTeleportTo(player); cities = City.getCitiesToTeleportTo(player);
try { try {
mines = Mine.getMinesToTeleportTo(player); mines = Mine.getMinesToTeleportTo(player);
if(mines == null)
mines = new ArrayList<>();
}catch(Exception e){ }catch(Exception e){
Logger.error("Unable To Load Mines For Teleport: " + e.getMessage()); Logger.error("Unable To Load Mines For Teleport: " + e.getMessage());
} }
}else { }else {
cities = City.getCitiesToRepledgeTo(player); cities = City.getCitiesToRepledgeTo(player);
mines = new ArrayList<>();
} }
} }

Loading…
Cancel
Save