Fix GuiMultipleModsErrored ignoring scrolling with mouse wheel. (#3861)
This commit is contained in:
parent
93a4e13837
commit
cbf6cb9744
1 changed files with 11 additions and 0 deletions
|
@ -30,7 +30,9 @@ import net.minecraftforge.fml.common.MultipleModsErrored;
|
|||
import net.minecraftforge.fml.common.WrongMinecraftVersionException;
|
||||
import net.minecraftforge.fml.common.versioning.ArtifactVersion;
|
||||
import net.minecraftforge.fml.common.versioning.DefaultArtifactVersion;
|
||||
import org.lwjgl.input.Mouse;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
public class GuiMultipleModsErrored extends GuiErrorBase
|
||||
|
@ -73,6 +75,15 @@ public class GuiMultipleModsErrored extends GuiErrorBase
|
|||
super.actionPerformed(button);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleMouseInput() throws IOException
|
||||
{
|
||||
super.handleMouseInput();
|
||||
int mouseX = Mouse.getEventX() * this.width / this.mc.displayWidth;
|
||||
int mouseY = this.height - Mouse.getEventY() * this.height / this.mc.displayHeight - 1;
|
||||
this.list.handleMouseInput(mouseX, mouseY);
|
||||
}
|
||||
|
||||
private class GuiList extends GuiScrollingList
|
||||
{
|
||||
public GuiList(int entryHeight)
|
||||
|
|
Loading…
Reference in a new issue