null guard

This commit is contained in:
Jason Mitchell committed 2024-10-28 21:22:41 -07:00
1 parent 8c90f79c17
commit 4bbf39eb4d
1 file changed
+1 -1
@@ -108,7 +108,7 @@ public abstract class IrisGuiSlot extends GuiSlot {
if (scrolling) {
this.amountScrolled += ((float) mouseY - this.initialClickY);
this.initialClickY = mouseY;
} else {
} else if (this.mc.currentScreen != null ){
for (; !this.mc.gameSettings.touchscreen && Mouse.next(); this.mc.currentScreen.handleMouseInput()) {
int dWheel = Mouse.getEventDWheel();