mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
ScriptRoleTrader.getSellOption returns the item being sold instead of the currency
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user