This commit is contained in:
DanLT 2021-09-01 13:07:49 -08:00
parent aaffeb9fac
commit 7a188af002
4 changed files with 11 additions and 2 deletions

View File

@ -312,4 +312,9 @@ public interface EngineMantle extends IObjectPlacer {
default boolean dequeueRegenerate(int x, int z) {
return false;// TODO:
}
default int getLoadedRegionCount()
{
return getMantle().getLoadedRegionCount();
}
}

View File

@ -48,7 +48,7 @@ public class BoardManager {
this.plugin = plugin;
this.boardSettings = boardSettings;
this.scoreboards = new ConcurrentHashMap<>();
this.updateTask = new BoardUpdateTask(this).runTaskTimer(plugin, 2L, 2L);
this.updateTask = new BoardUpdateTask(this).runTaskTimer(plugin, 2L, 20L);
plugin.getServer().getOnlinePlayers().forEach(this::setup);
}

View File

@ -32,7 +32,7 @@ public class BiomeContextHandler implements DecreeContextHandler<IrisBiome> {
if (sender.isPlayer()
&& IrisToolbelt.isIrisWorld(sender.player().getWorld())
&& IrisToolbelt.access(sender.player().getWorld()).getEngine() != null) {
return IrisToolbelt.access(sender.player().getWorld()).getEngine().getBiome(sender.player().getLocation());
return IrisToolbelt.access(sender.player().getWorld()).getEngine().getBiomeOrMantle(sender.player().getLocation());
}
return null;

View File

@ -502,4 +502,8 @@ public class Mantle {
public void deleteChunkSlice(int x, int z, Class<?> c) {
getChunk(x, z).deleteSlices(c);
}
public int getLoadedRegionCount() {
return loadedRegions.size();
}
}