mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
Fixes
This commit is contained in:
parent
aaffeb9fac
commit
7a188af002
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user