Ground Items - Fix alch value not applying to whole stack

This commit is contained in:
Unmoon
2017-12-22 14:17:52 +02:00
committed by Adam
parent 16b0bebd47
commit 701ae90ed5

View File

@@ -191,7 +191,7 @@ public class GroundItemsOverlay extends Overlay
ItemPrice itemPrice = itemManager.getItemPriceAsync(itemId);
int gePrice = itemPrice == null ? 0 : itemPrice.getPrice() * quantity;
int alchPrice = Math.round(itemDefinition.getPrice() * HIGH_ALCHEMY_CONSTANT);
int alchPrice = Math.round(itemDefinition.getPrice() * HIGH_ALCHEMY_CONSTANT) * quantity;
if (gePrice == 0 || ((gePrice >= config.getHideUnderGeValue()) &&
(alchPrice >= config.getHideUnderHAValue())))