Skip to content

Commit 5de1634

Browse files
committed
Primero termino de instanciar el servidor, luego inicio la carga de Mapas.
1 parent 544856d commit 5de1634

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/ar/net/argentum/servidor/Servidor.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public static Servidor getServidor() {
5959

6060
public static void main(String[] args) throws IOException {
6161
Servidor servidor = Servidor.getServidor();
62+
63+
LOGGER.info("Iniciando mundo...");
64+
servidor.cargarMapas();
65+
6266
servidor.iniciar();
6367
}
6468

@@ -98,7 +102,6 @@ private Servidor() throws IOException {
98102
this.personajes = new ConcurrentHashMap<>();
99103
// Creamos una lista para mantener las conexiones
100104
this.conexiones = new LinkedList<>();
101-
cargarMapas();
102105

103106
Runtime.getRuntime().addShutdownHook(new RutinaApagado(this));
104107
}

0 commit comments

Comments
 (0)