diff --git a/common/buildcraft/builders/gui/GuiArchitect.java b/common/buildcraft/builders/gui/GuiArchitect.java index 577a0f49..15eb4a40 100644 --- a/common/buildcraft/builders/gui/GuiArchitect.java +++ b/common/buildcraft/builders/gui/GuiArchitect.java @@ -8,6 +8,7 @@ */ package buildcraft.builders.gui; +import org.lwjgl.input.Keyboard; import org.lwjgl.opengl.GL11; import net.minecraft.client.gui.GuiButton; @@ -59,6 +60,8 @@ public class GuiArchitect extends GuiBuildCraft { int x = (width - xSize) / 2; int y = (height - ySize) / 2; + Keyboard.enableRepeatEvents(true); + optionRotate = new GuiButton(0, x + 5, y + 30, 77, 20, ""); buttonList.add(optionRotate); @@ -78,6 +81,11 @@ public class GuiArchitect extends GuiBuildCraft { updateButtons(); } + public void onGuiClosed() + { + Keyboard.enableRepeatEvents(false); + } + @Override protected void actionPerformed(GuiButton button) { BlueprintReadConfiguration conf = architect.readConfiguration;