From d2864e73854e6d9f1b1849b8710f419f17d81c12 Mon Sep 17 00:00:00 2001 From: Tobias Springer Date: Sun, 10 May 2020 18:59:42 +0200 Subject: [PATCH] Fix not being able to replace balts --- src/js/game/logic.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/game/logic.js b/src/js/game/logic.js index 19fa5675..12bbf229 100644 --- a/src/js/game/logic.js +++ b/src/js/game/logic.js @@ -104,7 +104,7 @@ export class GameLogic { const staticComp = original.components.StaticMapEntity; assert(staticComp, "Building is not static"); const beltComp = original.components.Belt; - if (beltComp) { + if (beltComp && building instanceof MetaBeltBaseBuilding) { // Its a belt, check if it differs in either rotation or rotation variant if (staticComp.rotation !== rotation) { return true; @@ -114,7 +114,7 @@ export class GameLogic { } } - return false; + return true; } /**