mirror of
https://github.com/Theta-Dev/ConstructionWand.git
synced 2024-11-22 22:27:49 +01:00
Compare commits
No commits in common. "a0b7ec9246d234c3ec16b8196760126372101962" and "3788c2b8da5e45e87525f6213fdf46b4d8c50cf5" have entirely different histories.
a0b7ec9246
...
3788c2b8da
3 changed files with 4 additions and 9 deletions
|
@ -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
|
|
@ -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 |
Loading…
Reference in a new issue