Skip to content
This repository was archived by the owner on Jan 3, 2020. It is now read-only.

Commit ce2d0ba

Browse files
committed
update forge
1 parent ac7ea3b commit ce2d0ba

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ apply plugin: 'net.minecraftforge.gradle.forge'
1414

1515
version = "0.5-beta"
1616
group= "org.devinprogress.yaif"
17-
archivesBaseName = "YetAnotherInputFix-1.9"
17+
archivesBaseName = "YetAnotherInputFix-mc1.9-forge1868"
1818

1919
minecraft {
20-
version = "1.9-12.16.0.1813-1.9"
20+
version = "1.9-12.16.0.1868-1.9"
2121
runDir = "../gameDir"
22-
mappings = 'snapshot_20160329'
22+
mappings = "snapshot_20160312"
2323
}
2424

2525
jar
@@ -31,6 +31,15 @@ jar
3131
}
3232
}
3333

34+
sourceSets {
35+
main {
36+
java {
37+
srcDir 'src/main/java'
38+
exclude 'net/minecraft'
39+
}
40+
}
41+
}
42+
3443
dependencies {
3544

3645
}

src/main/java/org/devinprogress/yaif/InputFieldWrapper.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import net.minecraftforge.fml.common.FMLCommonHandler;
66
import org.apache.logging.log4j.LogManager;
77
import org.devinprogress.yaif.bridges.BaseActionBridge;
8+
import org.lwjgl.input.Keyboard;
89
import org.lwjgl.opengl.AWTGLCanvas;
910
import org.lwjgl.opengl.Display;
1011

@@ -44,7 +45,7 @@ public InputFieldWrapper(int Width,int Height){ //Should be Called only once
4445
}catch(Exception e){
4546
e.printStackTrace();
4647
}
47-
frame=new JFrame("Minecraft 1.8");
48+
frame=new JFrame("Minecraft 1.9");
4849
textField=new JTextField();
4950
panel=new JPanel();
5051

@@ -58,7 +59,7 @@ public InputFieldWrapper(int Width,int Height){ //Should be Called only once
5859
canvas.setPreferredSize(new Dimension(Width, Height));
5960

6061
// Setup TextField
61-
textField.setVisible(false);
62+
textField.setVisible(shown);
6263
textField.setFont(new Font("Times New Roman",Font.PLAIN, fontSize));
6364
//textField.enableInputMethods(false);
6465

@@ -100,9 +101,10 @@ public void windowClosing(WindowEvent e) {
100101
frame.validate();
101102
frame.setLocationRelativeTo(null);
102103
frame.setVisible(true);
104+
//frame.setAutoRequestFocus(true);
103105

104106
try {
105-
Thread.sleep(1000);
107+
Thread.sleep(2000);
106108
} catch (InterruptedException ex) {
107109
ex.printStackTrace();
108110
}

0 commit comments

Comments
 (0)