Skip to content

Commit 1e96a3e

Browse files
twisti-devCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 67d1d6d commit 1e96a3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/dev/slne/surf/protect/paper/region/ProtectionRegion.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class ProtectionRegion(
212212
region = ProtectedPolygonalRegion(
213213
name,
214214
vectors,
215-
if (config.protection.protectOnlyAboveNetherRoofInNether) world.logicalHeight else world.minHeight,
215+
if (world.environment == World.Environment.NETHER && config.protection.protectOnlyAboveNetherRoofInNether) world.logicalHeight else world.minHeight,
216216
world.maxHeight - 1
217217
)
218218
region.owners.addPlayer(protectionUser.localPlayer)

0 commit comments

Comments
 (0)