Skip to content

Commit 0336e67

Browse files
authored
fix: snow being detected as an invalid spawn location (#84)
* fix: snow being detected as an invalid spawn location
1 parent 279dcda commit 0336e67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ eclipse
1212
*.ipr
1313
*.iws
1414

15+
1516
logs
1617
/truckconfig.json
1718
.kotlin

geary-papermc-spawning/src/main/kotlin/com/mineinabyss/geary/papermc/spawning/readers/SpawnPositionReader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object SpawnPositionReader {
1313
return when {
1414
type == Material.WATER || state is Waterlogged && state.isWaterlogged -> SpawnPosition.WATER
1515
type == Material.LAVA -> SpawnPosition.LAVA
16-
location.clone().down(1).block.isSolid && location.block.isPassable && !location.block.isLiquid -> SpawnPosition.GROUND
16+
location.clone().down(1).block. let { it.isSolid || it.type == Material.SNOW } && location.block.isPassable && !location.block.isLiquid -> SpawnPosition.GROUND
1717
location.block.isEmpty -> SpawnPosition.AIR
1818
else -> SpawnPosition.IN_BLOCK
1919
}

0 commit comments

Comments
 (0)