1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] Fixed 24k carat gold ingot

This commit is contained in:
TheBusyBiscuit 2021-04-03 19:42:14 +02:00
parent 1955d1235b
commit bbd41ff70c

View File

@ -33,15 +33,15 @@ public class GoldIngot extends SlimefunItem {
public GoldIngot(Category category, int caratRating, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
super(category, item, recipeType, recipe);
Validate.isTrue(caratRating > 0, "Carat must be above zero.");
Validate.isTrue(caratRating < 24, "Carat cannot go above 24.");
Validate.isTrue(caratRating > 0, "Carat rating must be above zero.");
Validate.isTrue(caratRating <= 24, "Carat rating cannot go above 24.");
this.caratRating = caratRating;
}
/**
* This returns the carat rating of this {@link GoldIngot}.
* <p>
* The purity of the {@link GoldIngot} is measured in carat.
* The purity of the {@link GoldIngot} is measured in carat (1-24).
*
* <pre>
* 24k = 100% gold.