fix: inventory

This commit is contained in:
cha0s 2024-09-27 09:06:14 -05:00
parent f673833a1d
commit 493042b913

View File

@ -125,6 +125,7 @@ export default class Inventory extends Component {
const {$$items, slots} = instance;
if (cleared) {
for (const slot in cleared) {
delete $$items[slot];
delete slots[slot];
}
}
@ -219,7 +220,7 @@ export default class Inventory extends Component {
if (recipient.id !== this.entity && this !== recipient.Player.openInventory) {
return {};
}
return super.toNet(data);
return super.toNet(recipient, data);
}
}
}