Skip to content

Commit 7fe8694

Browse files
committed
fix: Filter menu bug
1 parent bceadbd commit 7fe8694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enderio-base/src/main/java/com/enderio/base/common/filter/AbstractFilterMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private int getPlayerInventorySlot() {
122122

123123
@Override
124124
public void doClick(int slotId, int button, ClickType clickType, Player player) {
125-
if (slotId > 0 && slotId < slots.size() && getSlot(slotId) instanceof FilterSlot<?> filterSlot) {
125+
if (slotId >= 0 && slotId < slots.size() && getSlot(slotId) instanceof FilterSlot<?> filterSlot) {
126126
// Only allow PICKUP (click) or QUICK_MOVE (shift + click) events.
127127
if (clickType != ClickType.PICKUP && clickType != ClickType.QUICK_MOVE) {
128128
return;

0 commit comments

Comments
 (0)