Make examineplugin stop running getItemComposition on executor thread (#461)

This commit is contained in:
Lucwousin
2019-05-31 17:25:52 +02:00
committed by Kyleeld
parent 84ed36f2cb
commit e4787b595a
2 changed files with 15 additions and 1 deletions

View File

@@ -322,7 +322,7 @@ public class ExaminePlugin extends Plugin
quantity = Math.max(1, quantity);
int itemCompositionPrice = itemComposition.getPrice();
final int gePrice = itemManager.getItemPrice(id);
final int alchPrice = itemCompositionPrice <= 0 ? 0 : itemManager.getAlchValue(id);
final int alchPrice = itemCompositionPrice <= 0 ? 0 : itemManager.getAlchValue(itemComposition);
if (gePrice > 0 || alchPrice > 0)
{