diff --git a/gradle.properties b/gradle.properties index c342235..abf168d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 \ No newline at end of file +version_minor=6 \ No newline at end of file diff --git a/src/main/java/thetadev/constructionwand/client/ScreenWand.java b/src/main/java/thetadev/constructionwand/client/ScreenWand.java index b987e49..167bd0b 100644 --- a/src/main/java/thetadev/constructionwand/client/ScreenWand.java +++ b/src/main/java/thetadev/constructionwand/client/ScreenWand.java @@ -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) { diff --git a/src/main/resources/assets/constructionwand/textures/block/conjured_block.png b/src/main/resources/assets/constructionwand/textures/block/conjured_block.png deleted file mode 100644 index 7fc945c..0000000 Binary files a/src/main/resources/assets/constructionwand/textures/block/conjured_block.png and /dev/null differ