This commit is contained in:
yrsegal@gmail.com 2022-10-15 21:13:52 -04:00
parent 96c3daeca4
commit 7e9ffbee7a

View file

@ -26,6 +26,11 @@ public class ShiftScrollListener {
// not .isCrouching! that fails for players who are not on the ground
// yes, this does work if you remap your sneak key
if (player != null && (player.isShiftKeyDown() || !needsSneaking)) {
// Spectators shouldn't interact with items!
if (player.isSpectator()) {
return false;
}
if (IsScrollableItem(player.getMainHandItem().getItem())) {
mainHandDelta += delta;
return true;