Skip to content

Commit

Permalink
fix: CPlayerCustomData#destroyedItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicdex committed Nov 24, 2024
1 parent 43046c7 commit 414b81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapper/Managers/Monitors/PlayerCustomDataChanged.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { PlayerCustomData } from "../../Objects/DataBook/PlayerCustomData"
import { EntityManager } from "../EntityManager"
import { EventsSDK } from "../EventsSDK"

new (class CPlayerDataCustomChanged {
new (class CPlayerCustomDataChanged {
private readonly playersItems = new Map<number, Map<number, number>>()

constructor() {
Expand Down Expand Up @@ -173,7 +173,7 @@ new (class CPlayerDataCustomChanged {
if (playerID === -1) {
playerID = owner.OwnerPlayerID // example: courier
}
const playerData = PlayerCustomData.get(owner.PlayerID)
const playerData = PlayerCustomData.get(playerID)
if (playerData === undefined || !playerData.IsValid) {
return
}
Expand Down

0 comments on commit 414b81c

Please sign in to comment.