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/RecipeShulkerBox.patch
2017-05-14 12:00:00 +10:00

21 Zeilen
776 B
Diff

--- a/net/minecraft/server/RecipeShulkerBox.java
+++ b/net/minecraft/server/RecipeShulkerBox.java
@@ -1,8 +1,15 @@
package net.minecraft.server;
-public class RecipeShulkerBox { public static class Dye extends IRecipe {
+// CraftBukkit - decompile weirdness
+public class RecipeShulkerBox {
- public Dye() {}
+ public static class Dye extends ShapelessRecipes { // CraftBukkit
+
+ // CraftBukkit start - Delegate to new parent class with bogus info
+ public Dye() {
+ super("", new ItemStack(Blocks.WHITE_SHULKER_BOX, 0, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.DYE)));
+ }
+ // CraftBukkit end
public boolean a(InventoryCrafting inventorycrafting, World world) {
int i = 0;