From c564648a52b7b7ca6ad7c18d03a152a60c4057a7 Mon Sep 17 00:00:00 2001 From: Hubry Date: Sat, 18 Apr 2020 22:09:29 +0200 Subject: [PATCH] Fix pink wither AI tweaks not being done on world reload --- .../vazkii/botania/common/entity/EntityPinkWither.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/vazkii/botania/common/entity/EntityPinkWither.java b/src/main/java/vazkii/botania/common/entity/EntityPinkWither.java index cf9c683a4..141383db5 100644 --- a/src/main/java/vazkii/botania/common/entity/EntityPinkWither.java +++ b/src/main/java/vazkii/botania/common/entity/EntityPinkWither.java @@ -30,12 +30,12 @@ import javax.annotation.Nonnull; public class EntityPinkWither extends WitherEntity { @ObjectHolder(LibMisc.MOD_ID + ":pink_wither") public static EntityType TYPE; - public EntityPinkWither(EntityType type, World world) { - super(type, world); + public EntityPinkWither(World world) { + this(TYPE, world); } - public EntityPinkWither(World world) { - super(TYPE, world); + public EntityPinkWither(EntityType type, World world) { + super(type, world); // Remove firing wither skulls goalSelector.goals.removeIf(entry -> entry.getGoal() instanceof RangedAttackGoal);