summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-05-16 19:34:25 -0400
committerEvilSeph <evilseph@unaligned.org>2011-05-16 19:34:25 -0400
commit605bfd972f5839935a73bc1ce6459487e875b9ee (patch)
treed5002d9b3d80edd23748d7b3aada4f8bb6368ba1 /src/main/java/net/minecraft
parentc4138ff4d3a8aabf49ceb326a269caf2245aeabd (diff)
downloadcraftbukkit-605bfd972f5839935a73bc1ce6459487e875b9ee.tar
craftbukkit-605bfd972f5839935a73bc1ce6459487e875b9ee.tar.gz
craftbukkit-605bfd972f5839935a73bc1ce6459487e875b9ee.tar.lz
craftbukkit-605bfd972f5839935a73bc1ce6459487e875b9ee.tar.xz
craftbukkit-605bfd972f5839935a73bc1ce6459487e875b9ee.zip
Fixed dispensers not working.
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/TileEntityDispenser.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityDispenser.java b/src/main/java/net/minecraft/server/TileEntityDispenser.java
index 855e411d..f5397d7c 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;
}