Update to Minecraft 1.12-pre6
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f69eb04edc
commit
ea6ca4328a
35 changed files with 297 additions and 260 deletions
|
@ -4,8 +4,8 @@
|
|||
import com.google.common.collect.Lists;
|
||||
import java.util.ArrayList;
|
||||
|
||||
-public class RecipeRepair extends IRecipe {
|
||||
+public class RecipeRepair extends ShapelessRecipes { // CraftBukkit
|
||||
-public class RecipeRepair implements IRecipe {
|
||||
+public class RecipeRepair extends ShapelessRecipes implements IRecipe { // CraftBukkit - added extends
|
||||
|
||||
- public RecipeRepair() {}
|
||||
+ // CraftBukkit start - Delegate to new parent class
|
||||
|
@ -26,7 +26,7 @@
|
|||
+ NonNullList<RecipeItemStack> ingredients = NonNullList.a();
|
||||
+ ingredients.add(RecipeItemStack.a(new ItemStack[]{itemstack2.cloneItemStack()}));
|
||||
+ ingredients.add(RecipeItemStack.a(new ItemStack[]{itemstack.cloneItemStack()}));
|
||||
+ ShapelessRecipes recipe = new ShapelessRecipes(this.a, result.cloneItemStack(), ingredients);
|
||||
+ ShapelessRecipes recipe = new ShapelessRecipes("", result.cloneItemStack(), ingredients);
|
||||
+ recipe.key = new MinecraftKey("repairitem");
|
||||
+ inventorycrafting.currentRecipe = recipe;
|
||||
+ result = org.bukkit.craftbukkit.event.CraftEventFactory.callPreCraftEvent(inventorycrafting, result, inventorycrafting.container.getBukkitView(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue