From 9252230e3a2ce6d1169cb96097d2ebc160e3fedb Mon Sep 17 00:00:00 2001 From: Dinnerbone Date: Thu, 15 Sep 2011 18:01:13 +0100 Subject: Update for Minecraft 1.8.1 --- src/main/java/net/minecraft/server/ContainerPlayer.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/main/java/net/minecraft/server/ContainerPlayer.java') diff --git a/src/main/java/net/minecraft/server/ContainerPlayer.java b/src/main/java/net/minecraft/server/ContainerPlayer.java index 9eed24c1..aa13bc7b 100644 --- a/src/main/java/net/minecraft/server/ContainerPlayer.java +++ b/src/main/java/net/minecraft/server/ContainerPlayer.java @@ -82,13 +82,19 @@ public class ContainerPlayer extends Container { itemstack = itemstack1.cloneItemStack(); if (i == 0) { - this.a(itemstack1, 9, 45, true); + if (!this.a(itemstack1, 9, 45, true)) { + return null; + } } else if (i >= 9 && i < 36) { - this.a(itemstack1, 36, 45, false); + if (!this.a(itemstack1, 36, 45, false)) { + return null; + } } else if (i >= 36 && i < 45) { - this.a(itemstack1, 9, 36, false); - } else { - this.a(itemstack1, 9, 45, false); + if (!this.a(itemstack1, 9, 36, false)) { + return null; + } + } else if (!this.a(itemstack1, 9, 45, false)) { + return null; } if (itemstack1.count == 0) { -- cgit v1.2.3