Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/nms-patches/RecipiesShield.patch

21 Zeilen
811 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-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;