mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-22 16:21:31 +01:00
*Fixed removeItem(); Fixes ticket: 139
This commit is contained in:
parent
37231656aa
commit
1d3c04b3a9
@ -4026,8 +4026,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
||||
int foundAmount = 0;
|
||||
for (Map.Entry<Integer, ? extends ItemStack> item : allItems.entrySet()) {
|
||||
|
||||
if (ItemUtil.compareItems(is, item.getValue(), false) == 0) {
|
||||
|
||||
if (ItemUtil.compareItems(is, item.getValue(), true) == 0) {
|
||||
|
||||
if (item.getValue().getAmount() >= amount - foundAmount) {
|
||||
removeFrom.put(item.getKey(), amount - foundAmount);
|
||||
@ -4043,7 +4042,6 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (foundAmount == amount) {
|
||||
|
||||
for (Map.Entry<Integer, Integer> toRemove : removeFrom.entrySet()) {
|
||||
|
Loading…
Reference in New Issue
Block a user