From f6381345ae05302ff6a11af5c20f351836a75176 Mon Sep 17 00:00:00 2001 From: xtex Date: Tue, 11 Jul 2023 10:02:46 +0800 Subject: [PATCH] fix: swarm spawn --- .../kotlin/quaedam/projection/swarm/SwarmProjectionEffect.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projection/swarm/SwarmProjectionEffect.kt b/common/src/main/kotlin/quaedam/projection/swarm/SwarmProjectionEffect.kt index 8bbe3bf..7ef3a83 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/SwarmProjectionEffect.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/SwarmProjectionEffect.kt @@ -39,7 +39,7 @@ data class SwarmProjectionEffect( level.random.nextInt(area.minY(), area.maxY()), level.random.nextInt(area.minZ(), area.maxZ()), ) - spawnPos = spawnPos.atY(level.getHeight(Heightmap.Types.WORLD_SURFACE, spawnPos.x, spawnPos.z)).above() + spawnPos = spawnPos.atY(level.getHeight(Heightmap.Types.WORLD_SURFACE, spawnPos.x, spawnPos.z)) if (level.getBlockState(spawnPos.below()).isAir) return ProjectedPersonEntity.entity.get().spawn(level, spawnPos, MobSpawnType.TRIGGERED)