mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-01 15:36:45 +00:00
Prettier now
This commit is contained in:
parent
f6033d9c1b
commit
bf41364da7
@ -104,20 +104,14 @@ public class MantleJigsawComponent extends IrisMantleComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkBiomes(IrisJigsawStructurePlacement placement, int x, int z) {
|
private boolean checkBiomes(IrisJigsawStructurePlacement placement, int x, int z) {
|
||||||
// todo: biome getting kinda sucks
|
|
||||||
var biome = getEngineMantle().getEngine().getSurfaceBiome((x << 4) + 8, (z << 4) + 8);
|
var biome = getEngineMantle().getEngine().getSurfaceBiome((x << 4) + 8, (z << 4) + 8);
|
||||||
if (biome != null) {
|
if (biome == null) {
|
||||||
if (biome.isSea() && placement.getExclude().isExcludeOceanBiomes()) {
|
return true;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (biome.isLand() && placement.getExclude().isExcludeLandBiomes()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (biome.isShore() && placement.getExclude().isExcludeShoreBiomes()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
var exclude = placement.getExclude();
|
||||||
|
return !(biome.isSea() && exclude.isExcludeOceanBiomes() ||
|
||||||
|
biome.isLand() && exclude.isExcludeLandBiomes() ||
|
||||||
|
biome.isShore() && exclude.isExcludeShoreBiomes());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ChunkCoordinates
|
@ChunkCoordinates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user