Skip to content

Commit

Permalink
Fix #126 (BackSlot slots are treated like normal inventory slots)
Browse files Browse the repository at this point in the history
I hope this doesn't break compatibility with other mods that use slot ids > 40
  • Loading branch information
Siphalor committed Mar 25, 2022
1 parent 9c3bfca commit 4f731f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public int getScope(Slot slot) {
if (slot.inventory instanceof PlayerInventory) {
if (isHotbarSlot(slot)) {
return 0;
} else if (((ISlot) slot).mouseWheelie_getInvSlot() == 40) {
} else if (((ISlot) slot).mouseWheelie_getInvSlot() >= 40) {
return -1;
} else {
return 1;
Expand Down

0 comments on commit 4f731f4

Please sign in to comment.