13
0
geforkt von Mirrors/Paper
Paper/nms-patches/RecipeShulkerBox.patch

21 Zeilen
814 B
Diff

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-30 13:25:59 +02:00
-public class RecipeShulkerBox { public static class Dye implements IRecipe {
2017-05-14 04:00:00 +02:00
+// CraftBukkit - decompile weirdness
+public class RecipeShulkerBox {
2016-11-17 02:41:03 +01:00
2017-05-14 04:00:00 +02:00
- public Dye() {}
2017-05-30 13:25:59 +02:00
+ public static class Dye extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
2017-05-14 04:00:00 +02:00
+
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;