fix: inventory
This commit is contained in:
parent
f673833a1d
commit
493042b913
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user