ScriptRoleTrader.getSellOption returns the item being sold instead of the currency

This commit is contained in:
1whohears committed 2022-06-08 12:12:18 -05:00
1 parent 4a70dfb4ce
commit 5740519ed2
1 file changed
+1 -1
@@ -55,7 +55,7 @@ public class ScriptRoleTrader extends ScriptRoleInterface{
public IItemStack getSellOption(int slot) {
if (slot >= 18 || slot < 0) return null;
if (role.inventorySold.items.get(slot) == null) return null;
return NpcAPI.Instance().getIItemStack(role.inventoryCurrency.items.get(slot));
return NpcAPI.Instance().getIItemStack(role.inventorySold.items.get(slot));
}
/**