diff --git a/src/js/changelog.js b/src/js/changelog.js index a0d5a856..16a9d692 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -18,6 +18,7 @@ export const CHANGELOG = [ "Show mouse and camera tile on debug overlay (F4) (by dengr)", "Fix tunnels entrances connecting to exits sometimes when they shouldn't", "The initial belt planner direction is now based on the cursor movement (by MizardX)", + "Fix preferred variant not getting saved when clicking on the hud (by Danacus)", ], }, { diff --git a/src/js/game/hud/parts/building_placer_logic.js b/src/js/game/hud/parts/building_placer_logic.js index 8415c1e0..f0266b77 100644 --- a/src/js/game/hud/parts/building_placer_logic.js +++ b/src/js/game/hud/parts/building_placer_logic.js @@ -529,6 +529,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart { /** * Sets the current variant to the given variant + * @param {string} variant */ setVariant(variant) { const metaBuilding = this.currentMetaBuilding.get();