Skip to content

Commit

Permalink
Change the order of upgrades shown on the HUD GUI
Browse files Browse the repository at this point in the history
The new order reflects how the upgrades are shown in the team upgrades
menu in Hypixel Bed Wars.
  • Loading branch information
Leo3418 committed Sep 28, 2019
1 parent 0582ead commit edd4255
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/io/github/leo3418/hbwhelper/gui/HudGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,15 @@ private void renderGameInfo() {
}
drawItemIcons(itemsForUpgrades);

// "DeadShot"
int deadShotLevelInt = game.getDeadShotLevel();
String deadShotLevelString;
if (deadShotLevelInt > 0) {
deadShotLevelString = Integer.toString(deadShotLevelInt);
drawItemIconAndString(new ItemStack(DIAMOND_HOE),
deadShotLevelString);
}

// Trap queue
List<ItemStack> itemsForTraps =
new ArrayList<>(GameManager.MAX_TRAPS + 1);
Expand All @@ -314,15 +323,6 @@ private void renderGameInfo() {
}
}
drawItemIcons(itemsForTraps);

// "DeadShot"
int deadShotLevelInt = game.getDeadShotLevel();
String deadShotLevelString;
if (deadShotLevelInt > 0) {
deadShotLevelString = Integer.toString(deadShotLevelInt);
drawItemIconAndString(new ItemStack(DIAMOND_HOE),
deadShotLevelString);
}
}
}
}
Expand Down

0 comments on commit edd4255

Please sign in to comment.