Skip to content

Commit be6aa6a

Browse files
committed
fix(custom-biome): bad dryFoliaColor methods
1 parent 34ad7bc commit be6aa6a

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

main/src/main/java/me/outspending/biomesapi/biome/CustomBiome.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,17 +582,29 @@ public Builder(@NotNull CustomBiome biome) {
582582
return this;
583583
}
584584

585-
586585
/**
587586
* This method sets the dry foliage color property of the CustomBiome.
588587
*
589588
* @param dryFoliageColor The dry foliage color of the custom biome.
590589
* @since 1.0.2
591590
* @return The Builder object, for chaining method calls.
592591
*/
593-
@AsOf("1.0.2")
592+
@AsOf("1.2.0")
594593
public @NotNull Builder dryFoliageColor(@NotNull String dryFoliageColor) {
595-
this.dryFoliageColor = Integer.parseInt(formatHex(dryFoliageColor), 16);
594+
this.dryFoliageColor = parseHex(dryFoliageColor);
595+
return this;
596+
}
597+
598+
/**
599+
* This method sets the dry foliage color property of the CustomBiome.
600+
*
601+
* @param dryFoliageColor The dry foliage color of the custom biome.
602+
* @since 1.2.0
603+
* @return The Builder object, for chaining method calls.
604+
*/
605+
@AsOf("1.2.0")
606+
public @NotNull Builder dryFoliageColor(@NotNull Color dryFoliageColor) {
607+
this.dryFoliageColor = dryFoliageColor.asRGB();
596608
return this;
597609
}
598610

0 commit comments

Comments
 (0)