Skip to content

Commit d6edf1c

Browse files
committed
a
1 parent d422927 commit d6edf1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/ui.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -615,13 +615,16 @@ Hooks.on("ready", () => {
615615
const top = aboverange ? aboverange[0] : parseFloat(CONFIG.Levels.UI.range[1]);
616616

617617
region.updateSource({
618-
name: `Levels Stair ${bottom}-${top}`,
619-
color: "#fe6c0b",
620618
elevation: {
621619
bottom,
622620
top,
623621
},
624622
});
623+
if (!CONFIG.Levels.UI.stairEnabled) return;
624+
region.updateSource({
625+
name: `Levels Stair ${bottom}-${top}`,
626+
color: "#fe6c0b",
627+
});
625628
Hooks.once("createRegion", (region) => {
626629
region.createEmbeddedDocuments("RegionBehavior", [
627630
{

0 commit comments

Comments
 (0)