Ground Items - Fix alch value not applying to whole stack
This commit is contained in:
@@ -191,7 +191,7 @@ public class GroundItemsOverlay extends Overlay
|
|||||||
ItemPrice itemPrice = itemManager.getItemPriceAsync(itemId);
|
ItemPrice itemPrice = itemManager.getItemPriceAsync(itemId);
|
||||||
|
|
||||||
int gePrice = itemPrice == null ? 0 : itemPrice.getPrice() * quantity;
|
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()) &&
|
if (gePrice == 0 || ((gePrice >= config.getHideUnderGeValue()) &&
|
||||||
(alchPrice >= config.getHideUnderHAValue())))
|
(alchPrice >= config.getHideUnderHAValue())))
|
||||||
|
|||||||
Reference in New Issue
Block a user