mirror of
https://github.com/Theta-Dev/ConstructionWand.git
synced 2024-11-22 14:17:49 +01:00
Compare commits
2 commits
cccc7df440
...
33b5f441c1
Author | SHA1 | Date | |
---|---|---|---|
33b5f441c1 | |||
44b6a68bc2 |
3 changed files with 8 additions and 4 deletions
|
@ -14,4 +14,4 @@ botania=1.16.2-405
|
||||||
jei_version=jei-1.16.5:7.7.1.137
|
jei_version=jei-1.16.5:7.7.1.137
|
||||||
|
|
||||||
version_major=2
|
version_major=2
|
||||||
version_minor=5
|
version_minor=6
|
|
@ -56,9 +56,13 @@ public class ScreenWand extends Screen
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean charTyped(char character, int code) {
|
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
|
||||||
if(character == 'e') closeScreen();
|
if (Minecraft.getInstance().gameSettings.keyBindInventory.matchesKey(keyCode, scanCode)) {
|
||||||
return super.charTyped(character, code);
|
this.closeScreen();
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return super.keyPressed(keyCode, scanCode, modifiers);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createButton(int cx, int cy, IOption<?> option) {
|
private void createButton(int cx, int cy, IOption<?> option) {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in a new issue