Skip to content

Commit

Permalink
fix(skymp5-client): support FF containers PutItem/TakeItem (skyrim-mu…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pospelove authored Jul 8, 2024
1 parent 198fc3b commit bd7fd61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skymp5-client/src/services/services/containersService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { LastInvService } from "./lastInvService";
import { PutItemMessage } from "../messages/putItemMessage";
import { TakeItemMessage } from "../messages/takeItemMessage";
import { SweetTaffySweetCantDropService } from "./sweetTaffySweetCantDropService";
import { localIdToRemoteId } from "../../view/worldViewMisc";

export class ContainersService extends ClientListener {
constructor(private sp: Sp, private controller: CombinedController) {
Expand Down Expand Up @@ -54,8 +55,8 @@ export class ContainersService extends ClientListener {
...entryCopy,
t: entry.count > 0 ? MsgType.PutItem : MsgType.TakeItem,
target: e.oldContainer.getFormID() === 0x14
? e.newContainer.getFormID()
: e.oldContainer.getFormID()
? localIdToRemoteId(e.newContainer.getFormID())
: localIdToRemoteId(e.oldContainer.getFormID())
};
msg.count = Math.abs(msg.count);
if (this.sp.Game.getFormEx(entry.baseId)?.getName() === msg.name) {
Expand Down

0 comments on commit bd7fd61

Please sign in to comment.