Skip to content

Commit

Permalink
Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
UselessBullets committed Nov 10, 2023
1 parent df94fea commit 647e5d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package useless.terrainapi.generation.retro;

import useless.terrainapi.config.OreConfig;

public class RetroConfig extends OreConfig {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import useless.terrainapi.generation.retro.api.ChunkDecoratorRetroAPI;

public class RetroFunctions {
public static RetroConfig retroConfig = ChunkDecoratorRetroAPI.retroConfig;
public static Void generateDungeon(Parameters parameters){
int x = parameters.chunk.xPosition * 16;
int z = parameters.chunk.zPosition * 16;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
import net.minecraft.core.world.noise.RetroPerlinNoise;
import org.jetbrains.annotations.ApiStatus;
import useless.terrainapi.config.ConfigManager;
import useless.terrainapi.config.OreConfig;
import useless.terrainapi.generation.ChunkDecoratorAPI;
import useless.terrainapi.generation.Parameters;
import useless.terrainapi.generation.StructureFeatures;
import useless.terrainapi.generation.overworld.OverworldBiomeFeatures;
import useless.terrainapi.generation.overworld.OverworldOreFeatures;
import useless.terrainapi.generation.overworld.OverworldRandomFeatures;
import useless.terrainapi.generation.retro.RetroConfig;

import java.util.Random;

public class ChunkDecoratorRetroAPI extends ChunkDecoratorAPI {
public static OreConfig retroConfig = ConfigManager.getConfig("retro", OreConfig.class);
public static RetroConfig retroConfig = ConfigManager.getConfig("retro", RetroConfig.class);
public final RetroPerlinNoise treeDensityNoise;
public final boolean snowCovered;
public static StructureFeatures structureFeatures = new StructureFeatures();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected void initRandom() {

@Override
protected void initBiome() {
biomeFeatures.addFeature(RetroFunctions::getTreeFeature, null, RetroFunctions::getTreeDensity, null);
biomeFeatures.addFeature(RetroFunctions::getTreeFeature, null, RetroFunctions::getTreeDensity, null, -1);
biomeFeatures.addFeature(new WorldFeatureFlowers(Block.flowerYellow.id), 1, 2, null);
biomeFeatures.addFeature(new WorldFeatureSugarCane(), 1, 10, null);
biomeFeatures.addFeature(new WorldFeatureCactus(), 1, 1, null);
Expand Down

0 comments on commit 647e5d2

Please sign in to comment.