mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-07 01:54:10 +00:00
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user