Fix GuiMultipleModsErrored ignoring scrolling with mouse wheel. (#3861)

This commit is contained in:
ichttt 2017-05-02 02:12:33 +02:00 committed by LexManos
parent 93a4e13837
commit cbf6cb9744

View file

@ -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)