Skip to content

Commit

Permalink
null guard
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchej123 committed Oct 29, 2024
1 parent 8c90f79 commit 4bbf39e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) {
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();

Expand Down

0 comments on commit 4bbf39e

Please sign in to comment.