Paper/nms-patches/RecipiesShield.patch

21 lines
811 B
Diff
Raw Normal View History

2016-02-29 22:32:46 +01:00
--- a/net/minecraft/server/RecipiesShield.java
+++ b/net/minecraft/server/RecipiesShield.java
2017-05-14 04:00:00 +02:00
@@ -1,8 +1,15 @@
package net.minecraft.server;
2016-02-29 22:32:46 +01:00
2017-05-14 04:00:00 +02:00
-public class RecipiesShield { public static class Decoration extends IRecipe {
+// CraftBukkit - decompile weirdness
+public class RecipiesShield {
2016-02-29 22:32:46 +01:00
2017-05-14 04:00:00 +02:00
- public Decoration() {}
+ public static class Decoration extends ShapelessRecipes { // CraftBukkit
+
2016-02-29 22:32:46 +01:00
+ // CraftBukkit start - Delegate to new parent class with bogus info
2017-05-14 04:00:00 +02:00
+ public Decoration() {
+ super("", new ItemStack(Items.SHIELD, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.BANNER)));
2016-02-29 22:32:46 +01:00
+ }
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
2016-11-17 02:41:03 +01:00
ItemStack itemstack = ItemStack.a;