3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-23 23:00:08 +01:00
Paper/nms-patches/RecipiesShield.patch

21 Zeilen
849 B
Diff

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-30 13:25:59 +02:00
-public class RecipiesShield { public static class Decoration implements IRecipe {
2017-05-14 04:00:00 +02:00
+// CraftBukkit - decompile weirdness
+public class RecipiesShield {
2016-02-29 22:32:46 +01:00
2017-05-14 04:00:00 +02:00
- public Decoration() {}
2017-05-30 13:25:59 +02:00
+ public static class Decoration extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
2017-05-14 04:00:00 +02:00
+
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;