Fix item ejector bug
This commit is contained in:
parent
e59d94360c
commit
14246929b3
|
@ -118,7 +118,7 @@ export class ItemAcceptorComponent extends Component {
|
||||||
*/
|
*/
|
||||||
canAcceptItem(slotIndex, item) {
|
canAcceptItem(slotIndex, item) {
|
||||||
const slot = this.slots[slotIndex];
|
const slot = this.slots[slotIndex];
|
||||||
return slot.filter === null || slot.filter === item.getItemType();
|
return !slot.filter || slot.filter === item.getItemType();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in New Issue