3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 00:00:28 +01:00

Rewrite ingredient items in 1.20.5 recipe rewriter (#4285)

Dieser Commit ist enthalten in:
Valaphee The Meerkat 2024-11-26 17:20:06 +01:00 committet von GitHub
Ursprung 2d663db53f
Commit 40665782e7
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -38,7 +38,7 @@ final class RecipeRewriter1_20_5 <C extends ClientboundPacketType> extends Recip
final List<Item> newItems = new ArrayList<>(items.length); final List<Item> newItems = new ArrayList<>(items.length);
for (final Item item : items) { for (final Item item : items) {
if (item == null || item.isEmpty()) continue; if (item == null || item.isEmpty()) continue;
newItems.add(item); newItems.add(rewrite(wrapper.user(), item));
} }
wrapper.write(mappedItemArrayType(), newItems.toArray(new Item[0])); wrapper.write(mappedItemArrayType(), newItems.toArray(new Item[0]));
} }