mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Fix item ejector bug
This commit is contained in:
@@ -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
Block a user