SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-08-28 09:55:35 +02:00
Ursprung f8c96b196d
Commit fa66d32852

Datei anzeigen

@ -19,6 +19,7 @@
package de.steamwar.fightsystem.fight; package de.steamwar.fightsystem.fight;
import de.steamwar.core.Core;
import de.steamwar.core.VersionedRunnable; import de.steamwar.core.VersionedRunnable;
import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.ArenaMode;
import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.Config;
@ -62,9 +63,9 @@ public class FightWorld extends StateDependent {
public static void forceLoad(){ public static void forceLoad(){
Config.ArenaRegion.forEachChunk((cX, cZ) -> { Config.ArenaRegion.forEachChunk((cX, cZ) -> {
world.loadChunk(cX, cZ); world.loadChunk(cX, cZ);
world.setChunkForceLoaded(cX, cZ, true); if(Core.getVersion() > 12)
world.setChunkForceLoaded(cX, cZ, true);
}); });
world.setSpawnLocation(Config.SpecSpawn);
world.setKeepSpawnInMemory(true); world.setKeepSpawnInMemory(true);
} }