From 605bfd972f5839935a73bc1ce6459487e875b9ee Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 16 May 2011 19:34:25 -0400 Subject: [PATCH] Fixed dispensers not working. --- src/main/java/net/minecraft/server/TileEntityDispenser.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/TileEntityDispenser.java b/src/main/java/net/minecraft/server/TileEntityDispenser.java index 855e411dc9..f5397d7c43 100644 --- a/src/main/java/net/minecraft/server/TileEntityDispenser.java +++ b/src/main/java/net/minecraft/server/TileEntityDispenser.java @@ -52,8 +52,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory { int j = 1; for (int k = 0; k < this.items.length; ++k) { - if (this.items[k] != null && this.b.nextInt(j) == 0) { - if (this.items[k].count != 0) continue; // CraftBukkit + if (this.items[k] != null && this.items[k].count != 0 && this.b.nextInt(j) == 0) { // CraftBukkit i = k; ++j; }