summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ShapedRecipes.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/ShapedRecipes.java')
-rw-r--r--src/main/java/net/minecraft/server/ShapedRecipes.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ShapedRecipes.java b/src/main/java/net/minecraft/server/ShapedRecipes.java
index 83d4a176..0a48d45b 100644
--- a/src/main/java/net/minecraft/server/ShapedRecipes.java
+++ b/src/main/java/net/minecraft/server/ShapedRecipes.java
@@ -81,7 +81,7 @@ public class ShapedRecipes implements IRecipe {
return this.result;
}
- public boolean a(InventoryCrafting inventorycrafting) {
+ public boolean a(InventoryCrafting inventorycrafting, World world) {
for (int i = 0; i <= 3 - this.width; ++i) {
for (int j = 0; j <= 3 - this.height; ++j) {
if (this.a(inventorycrafting, i, j, true)) {
@@ -133,8 +133,8 @@ public class ShapedRecipes implements IRecipe {
return true;
}
- public ItemStack b(InventoryCrafting inventorycrafting) {
- return new ItemStack(this.result.id, this.result.count, this.result.getData(), this.result.getEnchantments()); // CraftBukkit - copy enchantments
+ public ItemStack a(InventoryCrafting inventorycrafting) {
+ return this.b().cloneItemStack();
}
public int a() {