From fa66d32852a332aa2e6372a7d88b86464e98a77e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 28 Aug 2021 09:55:35 +0200 Subject: [PATCH] Fix forceload Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightWorld.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightWorld.java b/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightWorld.java index a6343fd..93e53bd 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightWorld.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightWorld.java @@ -19,6 +19,7 @@ package de.steamwar.fightsystem.fight; +import de.steamwar.core.Core; import de.steamwar.core.VersionedRunnable; import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.Config; @@ -62,9 +63,9 @@ public class FightWorld extends StateDependent { public static void forceLoad(){ Config.ArenaRegion.forEachChunk((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); }