summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ContainerBrewingStand.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/ContainerBrewingStand.java')
-rw-r--r--src/main/java/net/minecraft/server/ContainerBrewingStand.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main/java/net/minecraft/server/ContainerBrewingStand.java b/src/main/java/net/minecraft/server/ContainerBrewingStand.java
index 5f1128c7..b7d11dba 100644
--- a/src/main/java/net/minecraft/server/ContainerBrewingStand.java
+++ b/src/main/java/net/minecraft/server/ContainerBrewingStand.java
@@ -37,7 +37,7 @@ public class ContainerBrewingStand extends Container {
public void addSlotListener(ICrafting icrafting) {
super.addSlotListener(icrafting);
- icrafting.setContainerData(this, 0, this.brewingStand.h());
+ icrafting.setContainerData(this, 0, this.brewingStand.i());
}
public void a() {
@@ -46,12 +46,12 @@ public class ContainerBrewingStand extends Container {
for (int i = 0; i < this.listeners.size(); ++i) {
ICrafting icrafting = (ICrafting) this.listeners.get(i);
- if (this.b != this.brewingStand.h()) {
- icrafting.setContainerData(this, 0, this.brewingStand.h());
+ if (this.b != this.brewingStand.i()) {
+ icrafting.setContainerData(this, 0, this.brewingStand.i());
}
}
- this.b = this.brewingStand.h();
+ this.b = this.brewingStand.i();
}
public boolean b(EntityHuman entityhuman) {
@@ -79,8 +79,12 @@ public class ContainerBrewingStand extends Container {
} else if (!this.a(itemstack1, 4, 40, false)) {
return null;
}
- } else if (!this.a(itemstack1, 4, 40, true)) {
- return null;
+ } else {
+ if (!this.a(itemstack1, 4, 40, true)) {
+ return null;
+ }
+
+ slot.a(itemstack1, itemstack);
}
if (itemstack1.count == 0) {
@@ -93,7 +97,7 @@ public class ContainerBrewingStand extends Container {
return null;
}
- slot.b(itemstack1);
+ slot.c(itemstack1);
}
return itemstack;