diff --git a/gradle.properties b/gradle.properties index 64e5b70..dcc329f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,4 +15,4 @@ mcp_mappings=1.17.1 jei_version=jei-1.17.1:8.3.0.39 version_major=2 -version_minor=6 \ No newline at end of file +version_minor=5 \ 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 d665e83..a746bab 100644 --- a/src/main/java/thetadev/constructionwand/client/ScreenWand.java +++ b/src/main/java/thetadev/constructionwand/client/ScreenWand.java @@ -1,7 +1,6 @@ package thetadev.constructionwand.client; import com.mojang.blaze3d.vertex.PoseStack; -import net.minecraft.client.Minecraft; import net.minecraft.client.gui.components.Button; import net.minecraft.client.gui.screens.Screen; import net.minecraft.network.chat.Component; @@ -54,13 +53,9 @@ public class ScreenWand extends Screen } @Override - public boolean keyPressed(int keyCode, int scanCode, int modifiers) { - if (Minecraft.getInstance().options.keyInventory.matches(keyCode, scanCode)) { - this.onClose(); - return true; - } else { - return super.keyPressed(keyCode, scanCode, modifiers); - } + public boolean charTyped(char character, int code) { + if(character == 'e') onClose(); + return super.charTyped(character, code); } 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 new file mode 100644 index 0000000..7fc945c Binary files /dev/null and b/src/main/resources/assets/constructionwand/textures/block/conjured_block.png differ