From 3918ecb46bd21ae23c8c41d8a8e93c9bbb267199 Mon Sep 17 00:00:00 2001 From: Teawhat <168696837+Teawhat@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:14:33 +0800 Subject: [PATCH] remove `/120F` --- .../java/net/minecraftforge/fml/client/GuiScrollingList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fml/client/GuiScrollingList.java b/src/main/java/net/minecraftforge/fml/client/GuiScrollingList.java index 72716963d..7f2e6842b 100644 --- a/src/main/java/net/minecraftforge/fml/client/GuiScrollingList.java +++ b/src/main/java/net/minecraftforge/fml/client/GuiScrollingList.java @@ -196,7 +196,7 @@ public void handleMouseInput(int mouseX, int mouseY) throws IOException int scroll = Mouse.getEventDWheel(); if (scroll != 0) { - this.scrollDistance += (float)((-1 * scroll / 120.0F) * this.slotHeight / 2); + this.scrollDistance += (float)((-1 * scroll) * this.slotHeight / 2); } }