From 0e0438503a8e783baa5da0a09eebf63f20f4ed8a Mon Sep 17 00:00:00 2001 From: Teawhat <168696837+Teawhat@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:55:50 +0800 Subject: [PATCH] remove `/120F` (#153) --- .../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); } }