3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 04:50:05 +01:00
Paper/nms-patches/RecipeBannerDuplicate.patch

18 Zeilen
771 B
Diff

2018-07-15 02:00:00 +02:00
--- a/net/minecraft/server/RecipeBannerDuplicate.java
+++ b/net/minecraft/server/RecipeBannerDuplicate.java
@@ -1,10 +1,12 @@
package net.minecraft.server;
-public class RecipeBannerDuplicate extends IRecipeComplex {
2019-04-23 04:00:00 +02:00
+public class RecipeBannerDuplicate extends ShapelessRecipes { // CraftBukkit - added extends
2018-07-15 02:00:00 +02:00
+ // CraftBukkit start - Delegate to new parent class with bogus info
public RecipeBannerDuplicate(MinecraftKey minecraftkey) {
- super(minecraftkey);
+ super(minecraftkey, "", new ItemStack(Items.WHITE_BANNER, 0), NonNullList.a(RecipeItemStack.a, RecipeItemStack.a(Items.WHITE_BANNER)));
}
+ // CraftBukkit end
2019-04-23 04:00:00 +02:00
public boolean a(InventoryCrafting inventorycrafting, World world) {
EnumColor enumcolor = null;