From ff46a89e791ea319de5896cb20c8dfc93260b715 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 16 Mar 2022 05:32:53 -0400 Subject: [PATCH] Fix floorplan buttons --- src/components/floorplan-editor/common/FloorplanEditor.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/floorplan-editor/common/FloorplanEditor.ts b/src/components/floorplan-editor/common/FloorplanEditor.ts index 9e9d8ba9..ae81088a 100644 --- a/src/components/floorplan-editor/common/FloorplanEditor.ts +++ b/src/components/floorplan-editor/common/FloorplanEditor.ts @@ -192,9 +192,11 @@ export class FloorplanEditor extends PixiApplicationProxy } return; case FloorAction.UP: + if(tile.height === 'x') return; futureHeightIndex = heightIndex + 1; break; case FloorAction.DOWN: + if(tile.height === 'x' || (heightIndex <= 1)) return; futureHeightIndex = heightIndex - 1; break; case FloorAction.SET: