Skip to content

Commit

Permalink
fix envoys spawning under all light levels
Browse files Browse the repository at this point in the history
  • Loading branch information
MBatt1 committed Nov 20, 2024
1 parent 9c1d75b commit 47c9971
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import net.id.paradiselost.entities.projectile.ThrownNitraEntity;
import net.minecraft.entity.*;
import net.minecraft.entity.attribute.DefaultAttributeContainer;
import net.minecraft.entity.mob.HostileEntity;
import net.minecraft.entity.mob.MobEntity;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
Expand All @@ -36,7 +37,7 @@ public class ParadiseLostEntityTypes {

// Hostile
public static final EntityType<EnvoyEntity> ENVOY = add("envoy", of(EnvoyEntity::new, MONSTER, changing(0.6F, 1.95F), 10),
attributes(EnvoyEntity::createEnvoyAttributes), spawnRestrictions(EnvoyEntity::canMobSpawn));
attributes(EnvoyEntity::createEnvoyAttributes), spawnRestrictions(HostileEntity::canSpawnInDark));

// passive
public static final EntityType<MoaEntity> MOA = add("moa", of(MoaEntity::new, CREATURE, changing(0.8F, 1.9F), 5),
Expand Down

0 comments on commit 47c9971

Please sign in to comment.