mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Fix floorplan buttons
This commit is contained in:
parent
900bfc3bac
commit
ff46a89e79
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user