Compare commits

...

2 commits

Author SHA1 Message Date
33b5f441c1 removed unused block texture 2021-12-12 11:04:04 +01:00
44b6a68bc2 fix #47 crash when pressing E inside wand gui 2021-12-12 10:58:55 +01:00
3 changed files with 8 additions and 4 deletions

View file

@ -14,4 +14,4 @@ botania=1.16.2-405
jei_version=jei-1.16.5:7.7.1.137
version_major=2
version_minor=5
version_minor=6

View file

@ -56,9 +56,13 @@ public class ScreenWand extends Screen
}
@Override
public boolean charTyped(char character, int code) {
if(character == 'e') closeScreen();
return super.charTyped(character, code);
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
if (Minecraft.getInstance().gameSettings.keyBindInventory.matchesKey(keyCode, scanCode)) {
this.closeScreen();
return true;
} else {
return super.keyPressed(keyCode, scanCode, modifiers);
}
}
private void createButton(int cx, int cy, IOption<?> option) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB