Fix map spawn
Fix map failing to spawn in some cases.
This commit is contained in:
@@ -25,8 +25,10 @@ function enter(pi) {
|
||||
pi.removeAll(4031508);
|
||||
}
|
||||
|
||||
if (pi.getClient().getChannelServer().getMapFactory().getMap(923010000).getCharacters().size() < 1)
|
||||
pi.getClient().getChannelServer().getMapFactory().getMap(923010000).killAllMonsters();
|
||||
pi.warp(230000003, "out00");
|
||||
if (pi.getClient().getChannelServer().getMapFactory().getMap(923010000).getCharacters().size() == 0) {
|
||||
pi.getClient().getChannelServer().getMapFactory().getMap(923010000).clearMapObjects();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user