Fix entry-fee issue.

This commit is contained in:
garbagemule 2014-01-20 02:59:03 +01:00
parent c536f3d47e
commit 6d93dfa660

View File

@ -1405,9 +1405,13 @@ public class ArenaImpl implements Arena
// Take any other items
for (ItemStack fee : entryFee) {
if (fee.getTypeId() < 0) continue;
int remaining = fee.getAmount();
while (remaining > 0) {
int slot = inv.first(fee.getType());
if (slot < 0) break;
ItemStack item = inv.getItem(slot);
remaining -= item.getAmount();
if (remaining >= 0) {