still not working

This commit is contained in:
creeper123123321 2018-12-10 12:13:32 -02:00
parent 649676e811
commit d6c4c18d35
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1
3 changed files with 19917 additions and 20774 deletions

View File

@ -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() {

View File

@ -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;