Skip to content

Commit

Permalink
fix: Don't allow GROUND spawns on liquid
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed Dec 23, 2024
1 parent 76920d3 commit ef3c2fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SpawnPositionReader {
return when {
type == Material.WATER -> SpawnPosition.WATER
type == Material.LAVA -> SpawnPosition.LAVA
location.clone().down(1).block.isSolid && location.block.isPassable -> SpawnPosition.GROUND
location.clone().down(1).block.isSolid && location.block.isPassable && !location.block.isLiquid -> SpawnPosition.GROUND
location.block.isEmpty -> SpawnPosition.AIR
else -> SpawnPosition.IN_BLOCK
}
Expand Down

0 comments on commit ef3c2fc

Please sign in to comment.