Skip to content

Commit d47e412

Browse files
committed
Merge remote-tracking branch 'origin/1.20' into 1.21.1
2 parents 39a4339 + 65ab37b commit d47e412

File tree

1 file changed

+1
-3
lines changed
  • neoforge/src/main/java/org/embeddedt/modernfix/neoforge/mixin/perf/faster_ingredients

1 file changed

+1
-3
lines changed

neoforge/src/main/java/org/embeddedt/modernfix/neoforge/mixin/perf/faster_ingredients/IngredientMixin.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ public ItemStack[] getItems() {
162162
private ItemStack[] computeItemsArray() {
163163
// Fast path for case with one item
164164
if (this.values.length == 1) {
165-
if (this.values[0] instanceof Ingredient.ItemValue itemValue) {
166-
return new ItemStack[] { itemValue.item() };
167-
} else if (this.values[0] instanceof Ingredient.TagValue tagValue && mfix$areTagsAvailable()) {
165+
if (this.values[0] instanceof Ingredient.TagValue tagValue && mfix$areTagsAvailable()) {
168166
var tag = BuiltInRegistries.ITEM.getTag(tagValue.tag());
169167
if (tag.isPresent() && tag.get().size() > 0) {
170168
var holderSet = tag.get();

0 commit comments

Comments
 (0)