Skip to content

Commit

Permalink
fix: local object update
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed Jul 11, 2024
1 parent 5af4a31 commit a977262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/server/controllers/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function useObjectLocal(player: alt.Player, objectData: iObject) {
player.emit(Events.controllers.textlabel.destroy, objectData.uid);
}

function update(newObjectData: Partial<TextLabel>) {
function update(newObjectData: Partial<iObject>) {
objectData = Object.assign(objectData, newObjectData);

for (let key of Object.keys(newObjectData)) {
Expand Down

0 comments on commit a977262

Please sign in to comment.