Fixed potential dupe bug

This commit is contained in:
Jared committed 2016-10-28 20:04:51 +02:00
1 parent fe2cd5ee4a
commit 12077b5cce
2 files changed
+3 -4

No files matched your search

@@ -25,7 +25,7 @@ public class IngredientTransform {
return ingredient.transform(new IItemTransformer() {
@Override
public IItemStack transform(IItemStack item, IPlayer byPlayer) {
return item.withAmount(item.getAmount() + 1);
return item.withAmount(item.getAmount());
}
});
}
@@ -72,7 +72,7 @@ public class IngredientTransform {
if (newDamage >= item.getMaxDamage()) {
return item.withAmount(item.getAmount()).withDamage(0);
} else {
return item.withAmount(item.getAmount() + 1).withDamage(newDamage);
return item.withAmount(item.getAmount()).withDamage(newDamage);
}
}
});
@@ -95,7 +95,7 @@ public class IngredientTransform {
byPlayer.give(withItem);
return item;
} else {
return withItem.withAmount(withItem.getAmount() + 1);
return withItem.withAmount(withItem.getAmount());
}
}
});