mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-06 07:30:09 +08:00
Merge pull request #6 from JorisD33/patch-get-inventory
Patch getInventory
This commit is contained in:
commit
658d8fb708
@ -98,7 +98,7 @@ function CSteamUser(community, userData, customurl) {
|
||||
});
|
||||
}
|
||||
|
||||
function processItem(name, defaultVal) {
|
||||
function processItem(userData, name, defaultVal) {
|
||||
if(!userData[name]) {
|
||||
return defaultVal;
|
||||
}
|
||||
@ -157,5 +157,5 @@ CSteamUser.prototype.getInventoryContexts = function(callback) {
|
||||
};
|
||||
|
||||
CSteamUser.prototype.getInventory = function(appID, contextID, tradableOnly, callback) {
|
||||
this._community.getInventory(appID, contextID, tradableOnly, callback);
|
||||
this._community.getUserInventory(this.steamID, appID, contextID, tradableOnly, callback);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user