3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01: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()) { for (Item[] ingredient : entry.getValue().getIngredients()) {
Item[] clone = ingredient.clone(); // Clone because array and item is mutable Item[] clone = ingredient.clone(); // Clone because array and item is mutable
for (int i = 0; i < clone.length; i++) { for (int i = 0; i < clone.length; i++) {
if (clone[i] == null) continue;
clone[i] = new Item(clone[i].getId(), clone[i].getAmount(), clone[i] = new Item(clone[i].getId(), clone[i].getAmount(),
(short) 0, null); (short) 0, null);
} }
@ -132,6 +133,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
for (Item[] ingredient : entry.getValue().getIngredients()) { for (Item[] ingredient : entry.getValue().getIngredients()) {
Item[] clone = ingredient.clone(); // Clone because array and item is mutable Item[] clone = ingredient.clone(); // Clone because array and item is mutable
for (int i = 0; i < clone.length; i++) { for (int i = 0; i < clone.length; i++) {
if (clone[i] == null) continue;
clone[i] = new Item(clone[i].getId(), clone[i].getAmount(), clone[i] = new Item(clone[i].getId(), clone[i].getAmount(),
(short) 0, null); (short) 0, null);
} }
@ -146,6 +148,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
wrapper.write(Type.STRING, entry.getValue().getGroup()); wrapper.write(Type.STRING, entry.getValue().getGroup());
Item[] clone = entry.getValue().getIngredient().clone(); // Clone because array and item is mutable Item[] clone = entry.getValue().getIngredient().clone(); // Clone because array and item is mutable
for (int i = 0; i < clone.length; i++) { for (int i = 0; i < clone.length; i++) {
if (clone[i] == null) continue;
clone[i] = new Item(clone[i].getId(), clone[i].getAmount(), clone[i] = new Item(clone[i].getId(), clone[i].getAmount(),
(short) 0, null); (short) 0, null);
} }
@ -523,7 +526,7 @@ public class Protocol1_13To1_12_2 extends Protocol {
// New 0x31 - Face Player // New 0x31 - Face Player
registerOutgoing(State.PLAY, 0x2F, 0x32); registerOutgoing(State.PLAY, 0x2F, 0x32);
registerOutgoing(State.PLAY, 0x30, 0x33); registerOutgoing(State.PLAY, 0x30, 0x33);
// Recipe // Unlock recipes
registerOutgoing(State.PLAY, 0x31, 0x34, new PacketRemapper() { registerOutgoing(State.PLAY, 0x31, 0x34, new PacketRemapper() {
@Override @Override
public void registerMap() { public void registerMap() {

Datei anzeigen

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