*Fixed removeItem(); Fixes ticket: 139

This commit is contained in:
Zino 2013-08-04 17:15:21 +02:00
parent 37231656aa
commit 1d3c04b3a9

View File

@ -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()) {