Skip to content

Commit

Permalink
Removed worldId check for account items
Browse files Browse the repository at this point in the history
This will make it possible to share account inventories across your own server if they share the same database
  • Loading branch information
jasonmoonen committed May 15, 2024
1 parent 902d6d8 commit f0ce440
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/servers/ZoneServer2016/managers/worlddatamanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1406,8 +1406,7 @@ export class WorldDataManager {
updatePromises.push(
collection.updateOne(
{
loginSessionId: accountInventory.loginSessionId,
serverId: this._worldId
loginSessionId: accountInventory.loginSessionId
},
{ $set: accountInventory },
{ upsert: true }
Expand Down Expand Up @@ -1481,7 +1480,6 @@ export class WorldDataManager {
} else {
await this._db?.collection(DB_COLLECTIONS.ACCOUNT_ITEMS).updateOne(
{
serverId: this._worldId,
loginSessionId: accountInventory.loginSessionId
},
{
Expand Down

0 comments on commit f0ce440

Please sign in to comment.