forked from RepoMirrors/kami-blue
make fixgui more reliable
This commit is contained in:
parent
3586aeb801
commit
2ea309c4fc
|
@ -43,6 +43,8 @@ public class GuiFrameUtil {
|
|||
if (kamiGUI == null || mc.player == null) return;
|
||||
List<Frame> frames = ContainerHelper.getAllChildren(Frame.class, kamiGUI);
|
||||
for (Frame frame : frames) {
|
||||
if (frame.getX() < 0) frame.setX(0);
|
||||
if (frame.getY() < 0) frame.setY(0);
|
||||
int divider = mc.gameSettings.guiScale;
|
||||
if (divider == 0) divider = 3;
|
||||
if (frame.getX() > (Display.getWidth() / divider)) {
|
||||
|
|
Loading…
Reference in New Issue