Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit e0fc4c3

Browse files
committed
fix!: name shadowed
1 parent 8f686fb commit e0fc4c3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/kotlin/scpsharp/content/facility/site63/piece/Site63Corridor.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ class Site63Corridor : FacilityStructurePiece {
114114
val lightBlock = if (Xoroshiro128PlusPlusRandom(chunkPos.toLong()).nextInt(20) == 2)
115115
Blocks.VERDANT_FROGLIGHT else Blocks.SEA_LANTERN
116116
for (i in 0 until length) {
117-
var pos = this.pos.offset(direction, i).add(0, 5, 0)
117+
var lightPos = this.pos.offset(direction, i).add(0, 5, 0)
118118
.offset(ycwDirection, 2)
119-
if (pos in chunkBox) {
120-
world[pos] = lightBlock
119+
if (lightPos in chunkBox) {
120+
world[lightPos] = lightBlock
121121
}
122-
pos = pos.offset(ycwDirection)
123-
if (pos in chunkBox) {
124-
world[pos] = lightBlock
122+
lightPos = lightPos.offset(ycwDirection)
123+
if (lightPos in chunkBox) {
124+
world[lightPos] = lightBlock
125125
}
126126
}
127127
}

0 commit comments

Comments
 (0)