Fix pink wither AI tweaks not being done on world reload

This commit is contained in:
Hubry committed 2020-04-18 22:21:03 +02:00
1 parent e2a102f8dc
commit c564648a52
1 file changed
+4 -4
@@ -30,12 +30,12 @@ import javax.annotation.Nonnull;
public class EntityPinkWither extends WitherEntity {
@ObjectHolder(LibMisc.MOD_ID + ":pink_wither") public static EntityType<EntityPinkWither> TYPE;
public EntityPinkWither(EntityType<EntityPinkWither> type, World world) {
super(type, world);
public EntityPinkWither(World world) {
this(TYPE, world);
}
public EntityPinkWither(World world) {
super(TYPE, world);
public EntityPinkWither(EntityType<EntityPinkWither> type, World world) {
super(type, world);
// Remove firing wither skulls
goalSelector.goals.removeIf(entry -> entry.getGoal() instanceof RangedAttackGoal);