Browse Source

teleport to mines

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

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

@ -18,6 +18,7 @@ import engine.net.client.Protocol;
import engine.objects.City; import engine.objects.City;
import engine.objects.Mine; import engine.objects.Mine;
import engine.objects.PlayerCharacter; import engine.objects.PlayerCharacter;
import org.pmw.tinylog.Logger;
import java.util.ArrayList; import java.util.ArrayList;
@ -81,7 +82,11 @@ public class TeleportRepledgeListMsg extends ClientNetMsg {
if (isTeleport) { if (isTeleport) {
cities = City.getCitiesToTeleportTo(player); 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 { }else {
cities = City.getCitiesToRepledgeTo(player); cities = City.getCitiesToRepledgeTo(player);
} }

Loading…
Cancel
Save