Fix charged quartz generation.

This commit is contained in:
Sebastian Hartte
2020-06-20 20:27:25 +02:00
parent 300e26a372
commit afe98cbe04
2 changed files with 5 additions and 14 deletions
+4 -13
View File
@@ -127,11 +127,6 @@ public final class AEConfig implements IConfigurableObject, IConfigManagerHost {
private int colorApplicatorBattery;
private int chargedStaffBattery;
// Certus quartz
private float spawnChargedChance;
private int quartzOresPerCluster;
private int quartzOresClusterAmount;
// Meteors
private int minMeteoriteDistance;
private int minMeteoriteDistanceSq;
@@ -215,16 +210,12 @@ public final class AEConfig implements IConfigurableObject, IConfigManagerHost {
this.oreDoublePercentage = config.oreDoublePercentage.get().floatValue();
this.spawnChargedChance = config.spawnChargedChance.get().floatValue();
this.minMeteoriteDistance = config.minMeteoriteDistance.get();
this.minMeteoriteDistanceSq = this.minMeteoriteDistance * this.minMeteoriteDistance;
this.meteoriteClusterChance = config.meteoriteClusterChance.get();
this.meteoriteMaximumSpawnHeight = config.meteoriteMaximumSpawnHeight.get();
this.meteoriteDimensionWhitelist = new HashSet<>(config.meteoriteDimensionWhitelist.get());
this.quartzOresPerCluster = config.quartzOresPerCluster.get();
this.quartzOresClusterAmount = config.quartzOresPerCluster.get();
this.wirelessBaseCost = config.wirelessBaseCost.get();
this.wirelessCostMultiplier = config.wirelessCostMultiplier.get();
this.wirelessBaseRange = config.wirelessBaseRange.get();
@@ -492,15 +483,15 @@ public final class AEConfig implements IConfigurableObject, IConfigManagerHost {
}
public float getSpawnChargedChance() {
return this.spawnChargedChance;
return COMMON.spawnChargedChance.get().floatValue();
}
public int getQuartzOresPerCluster() {
return this.quartzOresPerCluster;
return COMMON.quartzOresPerCluster.get();
}
public int getQuartzOresClusterAmount() {
return this.quartzOresClusterAmount;
return COMMON.quartzOresClusterAmount.get();
}
public int getMinMeteoriteDistance() {
@@ -727,7 +718,7 @@ public final class AEConfig implements IConfigurableObject, IConfigManagerHost {
defaultDimensionWhitelist, obj -> true);
this.quartzOresPerCluster = builder.define("quartzOresPerCluster", 4);
this.quartzOresClusterAmount = builder.define("quartzOresClusterAmount", 15);
this.quartzOresClusterAmount = builder.define("quartzOresClusterAmount", 20);
builder.pop();
+1 -1
View File
@@ -666,7 +666,7 @@ final class Registration {
if (AEConfig.instance().isFeatureEnabled(AEFeature.CHARGED_CERTUS_ORE)) {
BlockState chargedQuartzOre = AEApi.instance().definitions().blocks().quartzOre().block()
BlockState chargedQuartzOre = AEApi.instance().definitions().blocks().quartzOreCharged().block()
.getDefaultState();
b.addFeature(GenerationStage.Decoration.UNDERGROUND_DECORATION,
ChargedQuartzOreFeature.INSTANCE