mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-25 00:41:38 +01:00
Fix entry-fee issue.
This commit is contained in:
parent
c536f3d47e
commit
6d93dfa660
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user