Add block info keybind (#4284)

* Add block info keybind

* Change block info keybind to backtick

* Change block info keybind to F1
This commit is contained in:
Joshua Fan
2021-03-21 11:08:53 -07:00
committed by GitHub
parent d4afc3ecde
commit 7145ffaf28
3 changed files with 10 additions and 0 deletions

View File

@@ -189,6 +189,14 @@ public class PlacementFragment extends Fragment{
return true;
}
if(Core.input.keyTap(Binding.block_info)){
Block displayBlock = menuHoverBlock != null ? menuHoverBlock : input.block;
if(displayBlock != null){
ui.content.show(displayBlock);
Events.fire(new BlockInfoEvent());
}
}
return false;
}