Skip to content

Commit

Permalink
Update KeybindHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tomheaton authored Aug 15, 2020
1 parent 7e9b4f1 commit 6063514
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public void onKeyInput(InputEvent.KeyInputEvent event) {
ItemStack chestStack = player.getItemStackFromSlot(EquipmentSlotType.CHEST);
Item chestItem = null;
JetpackItem jetpack;
if(!chestStack.isEmpty()) { chestItem = chestStack.getItem(); }
if (!chestStack.isEmpty()) { chestItem = chestStack.getItem(); }
if (chestItem instanceof JetpackItem) {
jetpack = (JetpackItem) chestItem;
if(JETPACK_GUI_KEY.isPressed()) {
if (JETPACK_GUI_KEY.isPressed()) {
Minecraft.getInstance().displayGuiScreen(new JetpackGuiScreen());
}
if (JETPACK_ENGINE_KEY.isPressed()) {
Expand Down

0 comments on commit 6063514

Please sign in to comment.