mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 06:20:02 +00:00
Resident plate lookups
- Loaded-plate probes use Mantle.getLoadedRegion instead of the region map
This commit is contained in:
1 parent
2930ca40fb
commit
53b36fe197
4 files changed
+4
-5
No files matched your search
+1
-1
@@ -15,7 +15,7 @@ public final class HydrologyCaveStorage {
|
||||
}
|
||||
int chunkX = x >> 4;
|
||||
int chunkZ = z >> 4;
|
||||
TectonicPlate<Matter> plate = mantle.getLoadedRegions().get(Mantle.key(chunkX >> 5, chunkZ >> 5));
|
||||
TectonicPlate<Matter> plate = mantle.getLoadedRegion(chunkX >> 5, chunkZ >> 5);
|
||||
if (plate == null || plate.isClosed()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ public class IrisCarveModifier extends EngineAssignedModifier<NativeBlockState>
|
||||
}
|
||||
|
||||
private MantleChunk<Matter> existingMantleChunk(Mantle<Matter> mantle, int chunkX, int chunkZ) {
|
||||
TectonicPlate<Matter> plate = mantle.getLoadedRegions().get(Mantle.key(chunkX >> 5, chunkZ >> 5));
|
||||
TectonicPlate<Matter> plate = mantle.getLoadedRegion(chunkX >> 5, chunkZ >> 5);
|
||||
if (plate == null || plate.isClosed()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
+1
-1
@@ -557,7 +557,7 @@ public final class GenerationHistoryRuntimeRouter implements AutoCloseable {
|
||||
Mantle<Matter> mantle = access.mantle();
|
||||
MantleChunk<Matter> anchor = mantle.getChunk(regionX << 5, regionZ << 5).use();
|
||||
try {
|
||||
TectonicPlate<Matter> plate = mantle.getLoadedRegions().get(Mantle.key(regionX, regionZ));
|
||||
TectonicPlate<Matter> plate = mantle.getLoadedRegion(regionX, regionZ);
|
||||
HashMap<Long, ObjectContinuationBundle> bundles = new HashMap<>();
|
||||
for (int x = 0; x < 32; x++) {
|
||||
for (int z = 0; z < 32; z++) {
|
||||
|
||||
Reference in new issue
Block a user