mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 13:36:16 +01:00
Fixed dispensers not working.
This commit is contained in:
parent
c4138ff4d3
commit
605bfd972f
@ -52,8 +52,7 @@ public class TileEntityDispenser extends TileEntity implements IInventory {
|
|||||||
int j = 1;
|
int j = 1;
|
||||||
|
|
||||||
for (int k = 0; k < this.items.length; ++k) {
|
for (int k = 0; k < this.items.length; ++k) {
|
||||||
if (this.items[k] != null && this.b.nextInt(j) == 0) {
|
if (this.items[k] != null && this.items[k].count != 0 && this.b.nextInt(j) == 0) { // CraftBukkit
|
||||||
if (this.items[k].count != 0) continue; // CraftBukkit
|
|
||||||
i = k;
|
i = k;
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user