Rename and clean up MapleMapManager

This commit is contained in:
P0nk
2021-09-09 22:27:30 +02:00
parent 46842f9890
commit e917980a39
6 changed files with 24 additions and 24 deletions

View File

@@ -67,7 +67,7 @@ public final class Channel {
private PlayerStorage players = new PlayerStorage();
private ChannelServer channelServer;
private String serverMessage;
private MapleMapManager mapManager;
private MapManager mapManager;
private EventScriptManager eventSM;
private ServicesManager services;
private Map<Integer, HiredMerchant> hiredMerchants = new HashMap<>();
@@ -113,7 +113,7 @@ public final class Channel {
this.channel = channel;
this.ongoingStartTime = startTime + 10000; // rude approach to a world's last channel boot time, placeholder for the 1st wedding reservation ever
this.mapManager = new MapleMapManager(null, world, channel);
this.mapManager = new MapManager(null, world, channel);
this.port = BASE_PORT + (this.channel - 1) + (world * 100);
this.ip = YamlConfig.config.server.HOST + ":" + port;
@@ -246,7 +246,7 @@ public final class Channel {
}
}
public MapleMapManager getMapFactory() {
public MapManager getMapFactory() {
return mapManager;
}

View File

@@ -3,7 +3,7 @@ package net.server.task;
import net.server.PlayerStorage;
import net.server.Server;
import net.server.channel.Channel;
import server.maps.MapleMapManager;
import server.maps.MapManager;
/**
* @author Resinate
@@ -16,7 +16,7 @@ public class RespawnTask implements Runnable {
PlayerStorage ps = ch.getPlayerStorage();
if (ps != null) {
if (!ps.getAllCharacters().isEmpty()) {
MapleMapManager mapManager = ch.getMapFactory();
MapManager mapManager = ch.getMapFactory();
if (mapManager != null) {
mapManager.updateMaps();
}