summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
index 2ae768fa..24d1804a 100644
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryCrafting.java
@@ -112,25 +112,16 @@ public class CraftInventoryCrafting extends CraftInventory implements CraftingIn
for (int i = 0; i < mcItems.size(); i++) {
if (i < contents.length) {
- ItemStack item = contents[i];
- if (item == null || item.getTypeId() <= 0) {
- getMatrixInventory().setItem(i, null);
- } else {
- getMatrixInventory().setItem(i, CraftItemStack.asNMSCopy(item));
- }
+ getMatrixInventory().setItem(i, CraftItemStack.asNMSCopy(contents[i]));
} else {
- getMatrixInventory().setItem(i, null);
+ getMatrixInventory().setItem(i, net.minecraft.server.ItemStack.a);
}
}
}
public void setResult(ItemStack item) {
List<net.minecraft.server.ItemStack> contents = getResultInventory().getContents();
- if (item == null || item.getTypeId() <= 0) {
- contents.set(0, net.minecraft.server.ItemStack.a);
- } else {
- contents.set(0, CraftItemStack.asNMSCopy(item));
- }
+ contents.set(0, CraftItemStack.asNMSCopy(item));
}
public Recipe getRecipe() {