summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/InventoryCrafting.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/InventoryCrafting.java')
-rw-r--r--src/main/java/net/minecraft/server/InventoryCrafting.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/InventoryCrafting.java b/src/main/java/net/minecraft/server/InventoryCrafting.java
index 1e22c7cc..ade98090 100644
--- a/src/main/java/net/minecraft/server/InventoryCrafting.java
+++ b/src/main/java/net/minecraft/server/InventoryCrafting.java
@@ -73,7 +73,18 @@ public class InventoryCrafting implements IInventory {
}
public String getName() {
- return "Crafting";
+ return "container.crafting";
+ }
+
+ public ItemStack splitWithoutUpdate(int i) {
+ if (this.items[i] != null) {
+ ItemStack itemstack = this.items[i];
+
+ this.items[i] = null;
+ return itemstack;
+ } else {
+ return null;
+ }
}
public ItemStack splitStack(int i, int j) {