GuiContainerNPCInterface, GuiNPCInterface, GuiNpcMenu all disable repeat key events when closed like all other GUIs now.

The keyEvent scripted event no longer detects repeat held key presses.
This commit is contained in:
Luis C.M committed 2022-05-03 13:34:56 -05:00
1 parent 5c9424bac8
commit 09f76d84c4
7 files changed
+25 -23

No files matched your search

@@ -99,6 +99,8 @@ public class GuiNpcMenu implements GuiYesNoCallback{
}
private void close() {
Keyboard.enableRepeatEvents(false);
if(parent instanceof GuiContainerNPCInterface2)
((GuiContainerNPCInterface2)parent).close();