Fix techhider
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
972e5febae
Commit
fe28d387dd
@ -264,7 +264,7 @@ public class TechHider extends StateDependent {
|
||||
};
|
||||
|
||||
public static List<ChunkPos> prepareChunkReload(Player p){
|
||||
if(enabled)
|
||||
if(!enabled)
|
||||
return Collections.emptyList();
|
||||
List<ChunkPos> chunksToReload = new ArrayList<>();
|
||||
Config.ArenaRegion.forEachChunk((x, z) -> {
|
||||
@ -275,7 +275,7 @@ public class TechHider extends StateDependent {
|
||||
}
|
||||
|
||||
public static void reloadChunks(Player p, List<ChunkPos> chunksToReload){
|
||||
if(enabled)
|
||||
if(!enabled)
|
||||
return;
|
||||
Bukkit.getScheduler().runTaskLater(FightSystem.getPlugin(), () -> {
|
||||
for(ChunkPos chunk : chunksToReload){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren