Skip to content

Commit

Permalink
fix(ui): when taking an item from explore, the update event is fired …
Browse files Browse the repository at this point in the history
…correctly. closes #150
  • Loading branch information
seiyria committed Sep 7, 2023
1 parent c59d202 commit 80cec50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/modules/gameplay/gameplay.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,11 @@ export class GameplayService {
},
);

return { player: playerPatches, inventory: inventoryPatches };
return {
player: playerPatches,
inventory: inventoryPatches,
actions: [{ type: 'UpdateInventoryItems' }],
};
}

async startFight(userId: string): Promise<UserResponse> {
Expand Down

0 comments on commit 80cec50

Please sign in to comment.