From caba6db7510b5017ba04bf6bd67bb64c1392a736 Mon Sep 17 00:00:00 2001 From: DJ1TJOO Date: Thu, 20 Jan 2022 15:09:57 +0100 Subject: [PATCH] Fixed checkCanPlace defaulting wrong --- src/js/game/logic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/logic.js b/src/js/game/logic.js index 49bfb416..13f34332 100644 --- a/src/js/game/logic.js +++ b/src/js/game/logic.js @@ -58,7 +58,7 @@ export class GameLogic { * @param {Vector=} param0.offset Optional, move the entity by the given offset first * @returns {boolean} true if the entity could be placed there */ - checkCanPlaceEntity(entity, { allowReplaceBuildings = false, offset = null }) { + checkCanPlaceEntity(entity, { allowReplaceBuildings = true, offset = null } = {}) { // Compute area of the building const rect = entity.components.StaticMapEntity.getTileSpaceBounds(); if (offset) {