mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 14:23:48 -07:00
Update to Minecraft 1.12-pre2
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
--- a/net/minecraft/server/RecipiesShield.java
|
||||
+++ b/net/minecraft/server/RecipiesShield.java
|
||||
@@ -9,9 +9,13 @@
|
||||
craftingmanager.a(new RecipiesShield.Decoration(null));
|
||||
}
|
||||
@@ -1,8 +1,15 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
- static class Decoration implements IRecipe {
|
||||
+ static class Decoration extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
||||
-public class RecipiesShield { public static class Decoration extends IRecipe {
|
||||
+// CraftBukkit - decompile weirdness
|
||||
+public class RecipiesShield {
|
||||
|
||||
- private Decoration() {}
|
||||
- public Decoration() {}
|
||||
+ public static class Decoration extends ShapelessRecipes { // CraftBukkit
|
||||
+
|
||||
+ // CraftBukkit start - Delegate to new parent class with bogus info
|
||||
+ private Decoration() {
|
||||
+ super(new ItemStack(Items.SHIELD, 0 ,0), java.util.Arrays.asList(new ItemStack(Items.BANNER, 0, 0)));
|
||||
+ public Decoration() {
|
||||
+ super("", new ItemStack(Items.SHIELD, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.BANNER)));
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
|
||||
|
Reference in New Issue
Block a user