Fix floorplan buttons

This commit is contained in:
Bill 2022-03-16 05:32:53 -04:00
parent 900bfc3bac
commit ff46a89e79

View File

@ -192,9 +192,11 @@ export class FloorplanEditor extends PixiApplicationProxy
} }
return; return;
case FloorAction.UP: case FloorAction.UP:
if(tile.height === 'x') return;
futureHeightIndex = heightIndex + 1; futureHeightIndex = heightIndex + 1;
break; break;
case FloorAction.DOWN: case FloorAction.DOWN:
if(tile.height === 'x' || (heightIndex <= 1)) return;
futureHeightIndex = heightIndex - 1; futureHeightIndex = heightIndex - 1;
break; break;
case FloorAction.SET: case FloorAction.SET: