diff --git a/eco-api/src/main/java/com/willfp/eco/core/entities/ai/CustomGoal.java b/eco-api/src/main/java/com/willfp/eco/core/entities/ai/CustomGoal.java index b995fcbe..420b2601 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/entities/ai/CustomGoal.java +++ b/eco-api/src/main/java/com/willfp/eco/core/entities/ai/CustomGoal.java @@ -56,4 +56,11 @@ public interface CustomGoal extends EntityGoal, TargetGoal default void stop() { // Override when needed. } + + @Override + default T addToEntity(@NotNull T entity, int priority) { + throw new UnsupportedOperationException( + "Shorthand syntax is not supported for custom goals by default as they can be both entity and target goals." + ); + } }