From df33e015ade0be0df3d9ab1e242606dbdc7229ea Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 13 Jan 2023 13:14:32 +0900 Subject: - a little update to gui screen adapter Signed-off-by: syeyoung --- .../java/kr/syeyoung/dungeonsguide/mod/guiv2/GuiScreenAdapter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mod/src/main/java/kr/syeyoung') diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/GuiScreenAdapter.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/GuiScreenAdapter.java index 438431e4..fd06f973 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/GuiScreenAdapter.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/guiv2/GuiScreenAdapter.java @@ -82,17 +82,14 @@ public class GuiScreenAdapter extends GuiScreen { int j = this.mc.displayHeight - Mouse.getEventY(); if (view.isRelayoutRequested()) { - long start = System.nanoTime(); view.setRelayoutRequested(false); - System.out.println("relayout!"); view.getLayouter().layout(view, new ConstraintBox( Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight, Minecraft.getMinecraft().displayHeight )); - System.out.println("Relayout took "+(System.nanoTime() - start) +"ns"); } @@ -278,7 +275,7 @@ public class GuiScreenAdapter extends GuiScreen { @Override public void handleInput() throws IOException { -// Keyboard.enableRepeatEvents(true); // i hope it's temproary solution + Keyboard.enableRepeatEvents(true); // i hope it's temproary solution NEU Incompat. ? super.handleInput(); } } -- cgit