In architect GUI table allow key repeat events
This commit is contained in:
parent
3e4378f565
commit
b81cd59fb9
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue