3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-08 22:02:50 +02:00

still not working

Dieser Commit ist enthalten in:
creeper123123321 2018-12-10 12:13:32 -02:00
Ursprung 649676e811
Commit d6c4c18d35
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 0AC57D54786721D1
3 geänderte Dateien mit 19917 neuen und 20774 gelöschten Zeilen

Datei anzeigen

@ -115,6 +115,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
for (Item[] ingredient : entry.getValue().getIngredients()) {
Item[] clone = ingredient.clone(); // Clone because array and item is mutable
for (int i = 0; i < clone.length; i++) {
if (clone[i] == null) continue;
clone[i] = new Item(clone[i].getId(), clone[i].getAmount(),
(short) 0, null);
}
@ -132,6 +133,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
for (Item[] ingredient : entry.getValue().getIngredients()) {
Item[] clone = ingredient.clone(); // Clone because array and item is mutable
for (int i = 0; i < clone.length; i++) {
if (clone[i] == null) continue;
clone[i] = new Item(clone[i].getId(), clone[i].getAmount(),
(short) 0, null);
}
@ -146,6 +148,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
wrapper.write(Type.STRING, entry.getValue().getGroup());
Item[] clone = entry.getValue().getIngredient().clone(); // Clone because array and item is mutable
for (int i = 0; i < clone.length; i++) {
if (clone[i] == null) continue;
clone[i] = new Item(clone[i].getId(), clone[i].getAmount(),
(short) 0, null);
}
@ -523,7 +526,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
// New 0x31 - Face Player
registerOutgoing(State.PLAY, 0x2F, 0x32);
registerOutgoing(State.PLAY, 0x30, 0x33);
// Recipe
// Unlock recipes
registerOutgoing(State.PLAY, 0x31, 0x34, new PacketRemapper() {
@Override
public void registerMap() {

Datei anzeigen

@ -43,7 +43,7 @@ public class RecipeData {
public static class Recipe {
@NonNull
private String type;
private String group = "";
private String group;
private int width;
private int height;
private float experience;