Skip to content

Commit

Permalink
fix: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Sep 9, 2024
1 parent d116ab8 commit c92f531
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ public static ConfigData defaultConfig() {
null,
null,
0,
null,
null,
null
), new WeightedBlock("minecraft:cobbled_deepslate", 100.0, null, null, 0, null, null));
), new WeightedBlock("minecraft:cobbled_deepslate", 100.0, null, null, 0, null, null, null, null));
config.stoneGen = ResultList.of(new WeightedBlock("minecraft:stone", 100.0));
config.basaltGen = ResultList.of(new WeightedBlock("minecraft:basalt", 100.0));
config.customGen = new CustomGen(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ public static WeightedBlock fromBlock(Block block, Double weight) {
return fromBlock(block, weight, null, null, null, null);
}

public Optional<List<String>> getDimensions() {
return Util.optional(dimensions);
}

public static WeightedBlock fromBlock(
Block block,
Double weight,
Expand All @@ -97,6 +93,10 @@ public Block getBlock() {
return Util.getBlock(ResourceLocation.tryParse(id));
}

public Optional<List<String>> getDimensions() {
return Util.optional(dimensions);
}

public Optional<List<String>> getExcludedDimensions() {
return Util.optional(excludedDimensions);
}
Expand All @@ -109,6 +109,14 @@ public Optional<Integer> getMinY() {
return Util.optional(minY);
}

public Optional<List<String>> getBiomes() {
return Util.optional(biomes);
}

public Optional<List<String>> getExcludedBiomes() {
return Util.optional(excludedBiomes);
}

@Override
public void toPacket(FriendlyByteBuf buf) {
buf.writeUtf(id);
Expand Down

0 comments on commit c92f531

Please sign in to comment.