3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

Fix 1.12->1.13 recipe type switcheroo

Fixes #1918
Dieser Commit ist enthalten in:
KennyTV 2020-07-19 13:37:41 +02:00
Ursprung a981adf7a3
Commit 5047aaff0c
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -65,9 +65,9 @@ public class InventoryPackets {
handler(wrapper -> { handler(wrapper -> {
int size = wrapper.passthrough(Type.VAR_INT); int size = wrapper.passthrough(Type.VAR_INT);
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
// First type, then id // First id, then type
String id = wrapper.passthrough(Type.STRING);
String type = wrapper.passthrough(Type.STRING).replace("minecraft:", ""); String type = wrapper.passthrough(Type.STRING).replace("minecraft:", "");
String id = wrapper.passthrough(Type.STRING); // Recipe Identifier
recipeRewriter.handle(wrapper, type); recipeRewriter.handle(wrapper, type);
} }
}); });