From 54653cf28e784014e68cb361fa28e65b49da752b Mon Sep 17 00:00:00 2001 From: hexagonhexagon Date: Sun, 21 Jun 2020 18:11:55 -0400 Subject: [PATCH] Make edge case where building is replaceable but unremovable an assertAlways. --- src/js/game/hud/parts/blueprint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/game/hud/parts/blueprint.js b/src/js/game/hud/parts/blueprint.js index fbd00484..c53163d9 100644 --- a/src/js/game/hud/parts/blueprint.js +++ b/src/js/game/hud/parts/blueprint.js @@ -203,10 +203,10 @@ export class Blueprint { "Can not delete entity for blueprint" ); if (!root.logic.tryDeleteBuilding(contents)) { - logger.error( + assertAlways( + false, "Building has replaceable component but is also unremovable in blueprint" ); - return false; } } }