fix: give
This commit is contained in:
parent
46f0a0cc07
commit
c1bdae1c8c
|
@ -194,9 +194,9 @@ export default class Inventory extends Component {
|
|||
}
|
||||
for (let slot = 1; slot < 11; ++slot) {
|
||||
if (!slots[slot]) {
|
||||
slots[slot] = stack;
|
||||
slots[slot] = {...stack};
|
||||
this.$$items[slot] = new ItemProxy(Component, this, slot);
|
||||
Component.markChange(this.entity, 'given', {[slot]: slots[slot]});
|
||||
Component.markChange(this.entity, 'given', {[slot]: {...stack}});
|
||||
await this.$$items[slot].load(stack.source);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user