Compare commits

..

No commits in common. "a0b7ec9246d234c3ec16b8196760126372101962" and "3788c2b8da5e45e87525f6213fdf46b4d8c50cf5" have entirely different histories.

3 changed files with 4 additions and 9 deletions

View file

@ -15,4 +15,4 @@ mcp_mappings=1.17.1
jei_version=jei-1.17.1:8.3.0.39 jei_version=jei-1.17.1:8.3.0.39
version_major=2 version_major=2
version_minor=6 version_minor=5

View file

@ -1,7 +1,6 @@
package thetadev.constructionwand.client; package thetadev.constructionwand.client;
import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.components.Button; import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.Screen; import net.minecraft.client.gui.screens.Screen;
import net.minecraft.network.chat.Component; import net.minecraft.network.chat.Component;
@ -54,13 +53,9 @@ public class ScreenWand extends Screen
} }
@Override @Override
public boolean keyPressed(int keyCode, int scanCode, int modifiers) { public boolean charTyped(char character, int code) {
if (Minecraft.getInstance().options.keyInventory.matches(keyCode, scanCode)) { if(character == 'e') onClose();
this.onClose(); return super.charTyped(character, code);
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.

After

Width:  |  Height:  |  Size: 5.5 KiB