Paper/nms-patches/RecipeShulkerBox.patch

21 lines
776 B
Diff
Raw Normal View History

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