SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-03-31 21:24:46 +02:00
Ursprung 972e5febae
Commit fe28d387dd

Datei anzeigen

@ -264,7 +264,7 @@ public class TechHider extends StateDependent {
}; };
public static List<ChunkPos> prepareChunkReload(Player p){ public static List<ChunkPos> prepareChunkReload(Player p){
if(enabled) if(!enabled)
return Collections.emptyList(); return Collections.emptyList();
List<ChunkPos> chunksToReload = new ArrayList<>(); List<ChunkPos> chunksToReload = new ArrayList<>();
Config.ArenaRegion.forEachChunk((x, z) -> { Config.ArenaRegion.forEachChunk((x, z) -> {
@ -275,7 +275,7 @@ public class TechHider extends StateDependent {
} }
public static void reloadChunks(Player p, List<ChunkPos> chunksToReload){ public static void reloadChunks(Player p, List<ChunkPos> chunksToReload){
if(enabled) if(!enabled)
return; return;
Bukkit.getScheduler().runTaskLater(FightSystem.getPlugin(), () -> { Bukkit.getScheduler().runTaskLater(FightSystem.getPlugin(), () -> {
for(ChunkPos chunk : chunksToReload){ for(ChunkPos chunk : chunksToReload){