Merged spawn zones with spawn data.

This commit is contained in:
MobiusDevelopment
2022-04-16 01:30:55 +00:00
parent c2e95487e3
commit 4c7196c2e8
89 changed files with 13909 additions and 13503 deletions

View File

@ -461,9 +461,7 @@ public class ZoneManager implements IXmlReader
_classZones.put(WaterZone.class, new ConcurrentHashMap<>());
_spawnTerritories.clear();
parseDatapackDirectory("data/zones", false);
parseDatapackDirectory("data/zones/spawnZones", false);
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _classZones.size() + " zone classes and " + getSize() + " zones.");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _spawnTerritories.size() + " NPC spawn territoriers.");
final OptionalInt maxId = _classZones.values().stream().flatMap(map -> map.keySet().stream()).mapToInt(Integer.class::cast).filter(value -> value < 300000).max();
LOGGER.info(getClass().getSimpleName() + ": Last static id " + maxId.getAsInt() + ".");
}