Skip to content

Commit

Permalink
fixed getOutputItems in Recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jan 17, 2025
1 parent 2250c2a commit d5e5fd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public ItemStack[] getOutputItems() {
public ItemStack[] getOutputItems(boolean chance) {
if (hasOutputItems()) {
ItemStack[] outputs = itemsOutput.clone();
if (outputChances != null) {
if (outputChances != null || !chance) {
List<ItemStack> evaluated = new ObjectArrayList<>();
for (int i = 0; i < outputs.length; i++) {
if (!chance || Ref.RNG.nextInt(10000) < outputChances[i]) {
Expand Down

0 comments on commit d5e5fd9

Please sign in to comment.