Skip to content

Commit

Permalink
Fix the escape key not closing the editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay113355 committed Oct 27, 2023
1 parent 5aae241 commit a5bfeae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
apply plugin: 'net.minecraftforge.gradle'

group = 'com.mcf.davidee.nbtedit'
version = '1.16.5-2.0.0'
version = '1.16.5-2.0.1'

java {
withSourcesJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public boolean keyPressed(int key, int p_231046_2_, int p_231046_3_) {
if (window != null) {
return window.keyPressed(key, p_231046_2_, p_231046_3_);
} else {
if (key == GLFW.GLFW_MOUSE_BUTTON_2) {
if (key == GLFW.GLFW_KEY_ESCAPE) {
if (guiTree.isEditingSlot()) {
guiTree.stopEditingSlot();
} else {
Expand Down

0 comments on commit a5bfeae

Please sign in to comment.