0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Fix EditBlockListScreen buttons pressing when they shouldn't

This commit is contained in:
Alexander01998 2022-01-12 00:30:25 +01:00
parent 3f58392ba4
commit 8c7cd60870

View File

@ -135,11 +135,13 @@ public final class EditBlockListScreen extends Screen
switch(keyCode) switch(keyCode)
{ {
case GLFW.GLFW_KEY_ENTER: case GLFW.GLFW_KEY_ENTER:
addButton.onPress(); if(addButton.active)
addButton.onPress();
break; break;
case GLFW.GLFW_KEY_DELETE: case GLFW.GLFW_KEY_DELETE:
removeButton.onPress(); if(!blockNameField.isFocused())
removeButton.onPress();
break; break;
case GLFW.GLFW_KEY_ESCAPE: case GLFW.GLFW_KEY_ESCAPE: