fix: swarm spawn
This commit is contained in:
parent
7f49b0a84f
commit
f6381345ae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user