Dropped custom_spawnlist SQL table.

This commit is contained in:
MobiusDev
2016-08-29 20:11:31 +00:00
parent 6474d36c2b
commit a3b568f97b
8 changed files with 171 additions and 193 deletions

View File

@@ -30,6 +30,7 @@ import java.util.stream.Collectors;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import com.l2jmobius.Config;
import com.l2jmobius.commons.util.IGameXmlReader;
import com.l2jmobius.commons.util.IXmlReader;
import com.l2jmobius.gameserver.model.ChanceLocation;
@@ -87,6 +88,11 @@ public class SpawnsData implements IGameXmlReader
*/
public void init()
{
if (Config.ALT_DEV_NO_SPAWNS)
{
return;
}
LOGGER.info(getClass().getSimpleName() + ": Initializing spawns...");
_spawns.stream().filter(SpawnTemplate::isSpawningByDefault).forEach(template ->
{