mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Dont wait for the mantle to load, skip it until it's loaded (async)
This commit is contained in:
parent
88aad1e107
commit
ce94c5e237
@ -266,7 +266,7 @@ public interface Engine extends DataProvider, Fallible, LootProvider, BlockUpdat
|
||||
&& c.getWorld().isChunkLoaded(c.getX(), c.getZ() - 1)
|
||||
&& c.getWorld().isChunkLoaded(c.getX() - 1, c.getZ())
|
||||
&& c.getWorld().isChunkLoaded(c.getX() + 1, c.getZ() - 1)
|
||||
&& c.getWorld().isChunkLoaded(c.getX() - 1, c.getZ() + 1)) {
|
||||
&& c.getWorld().isChunkLoaded(c.getX() - 1, c.getZ() + 1) && getMantle().getMantle().isLoaded(c)) {
|
||||
getMantle().getMantle().raiseFlag(c.getX(), c.getZ(), MantleFlag.UPDATE, () -> J.s(() -> {
|
||||
PrecisionStopwatch p = PrecisionStopwatch.start();
|
||||
KMap<Long, Integer> updates = new KMap<>();
|
||||
|
@ -524,4 +524,8 @@ public class Mantle {
|
||||
|
||||
slice.iterateSync((xx, yy, zz, t) -> set(x + xx, y + yy, z + zz, t));
|
||||
}
|
||||
|
||||
public boolean isLoaded(Chunk c) {
|
||||
return loadedRegions.containsKey(key(c.getX() >> 5, c.getZ() >> 5));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user