generated from tilera/1710mod
fix: structure node bedrock bug
This commit is contained in:
parent
9db42fb0db
commit
16fea97234
|
@ -24,7 +24,7 @@ apply from: './gradle/scripts/mixins.gradle'
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
version = "1.8.7"
|
version = "1.8.8"
|
||||||
group= "dev.tilera"
|
group= "dev.tilera"
|
||||||
archivesBaseName = "auracore"
|
archivesBaseName = "auracore"
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class WorldGenerator implements IWorldGenerator {
|
||||||
this.structureNode.put(var7.hashCode(), true);
|
this.structureNode.put(var7.hashCode(), true);
|
||||||
int yPos = world.getHeightValue(var7.chunkPosX, var7.chunkPosZ) + 3;
|
int yPos = world.getHeightValue(var7.chunkPosX, var7.chunkPosZ) + 3;
|
||||||
int nearKey = AuraManager.getClosestAuraWithinRange(world, var7.chunkPosX, var7.chunkPosZ, 10);
|
int nearKey = AuraManager.getClosestAuraWithinRange(world, var7.chunkPosX, var7.chunkPosZ, 10);
|
||||||
if (nearKey < 0 && yPos > 0) {
|
if (nearKey < 0 && yPos > 5) {
|
||||||
int value = random.nextInt(200) + 800;
|
int value = random.nextInt(200) + 800;
|
||||||
AuraManager.registerAuraNode(world, (short)value, EnumNodeType.NORMAL, world.provider.dimensionId, var7.chunkPosX, yPos, var7.chunkPosZ);
|
AuraManager.registerAuraNode(world, (short)value, EnumNodeType.NORMAL, world.provider.dimensionId, var7.chunkPosX, yPos, var7.chunkPosZ);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue