In architect GUI table allow key repeat events

This commit is contained in:
Raul Tambre 2014-05-06 20:12:40 +03:00
parent 3e4378f565
commit b81cd59fb9

View file

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