Skip to content

Commit

Permalink
building production fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SoLegendary committed Dec 5, 2024
1 parent d12a8f4 commit 6441ad5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ public static void switchHudToIdlestBuilding() {
}
}
}
if (idlestBuilding != null) {
if (idlestBuilding != null)
hudSelectedBuilding = idlestBuilding;
System.out.println(prodTicksLeftMax);
}
}

public static void setBuildingToPlace(Class<? extends Building> building) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1359,9 +1359,8 @@ private static void cycleUnitSubgroups() {
if (entities.isEmpty())
return;

if (Keybindings.shiftMod.isDown()) {
if (Keybindings.shiftMod.isDown())
Collections.reverse(entities);
}

if (hudSelectedEntity != null) {
String hudSelectedEntityName = HudClientEvents.getModifiedEntityName(hudSelectedEntity);
Expand Down Expand Up @@ -1392,9 +1391,8 @@ private static void cycleBuildingSubgroups() {
if (buildings.isEmpty())
return;

if (Keybindings.shiftMod.isDown()) {
if (Keybindings.shiftMod.isDown())
Collections.reverse(buildings);
}

if (hudSelectedBuilding != null) {
String hudSelectedBuildingName = hudSelectedBuilding.name;
Expand All @@ -1409,9 +1407,8 @@ private static void cycleBuildingSubgroups() {
}
lastBuildingName = currentBuildingName;
}
if (!cycled) {
if (!cycled)
hudSelectedBuilding = buildings.get(0);
}
}
}

Expand Down

0 comments on commit 6441ad5

Please sign in to comment.