Fixed menu opening and closing when chat is open

This commit is contained in:
Anuken 2018-05-05 18:36:25 -04:00
parent 3938022002
commit 37a73eda37

View File

@ -48,7 +48,7 @@ public class HudFragment implements Fragment{
flip = new imagebutton("icon-arrow-up", isize, () -> toggleMenus()).get();
update(t -> {
if(Inputs.keyTap("toggle_menus")){
if(Inputs.keyTap("toggle_menus") && !ui.chatfrag.chatOpen()){
toggleMenus();
}
});