Dulce De Leche

Dulce De Leche

4.4k Downloads

Creeper spawns ignore non-skylight

ellie-semele opened this issue ยท 0 comments

commented

Creepers spawn in torch lit areas I suspect the following to be the offending code as it only checks sky light.

fun onCreeperEntityCanSpawn(entity: Entity, world: IWorld, spawnType: SpawnType): Boolean {
return world.getLightLevel(LightType.SKY, BlockPos(entity.x, entity.y, entity.z)) <= 8
}