From cd40ba58dac00aa5bf15fb1038bdfc34d5a1572c Mon Sep 17 00:00:00 2001 From: xtex Date: Wed, 16 Aug 2023 10:22:17 +0800 Subject: [PATCH] fix: WorkPoiAI not initialized early --- .../kotlin/quaedam/projection/swarm/ai/ProjectedPersonAI.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/src/main/kotlin/quaedam/projection/swarm/ai/ProjectedPersonAI.kt b/common/src/main/kotlin/quaedam/projection/swarm/ai/ProjectedPersonAI.kt index 5cfd4ce..a0ecd37 100644 --- a/common/src/main/kotlin/quaedam/projection/swarm/ai/ProjectedPersonAI.kt +++ b/common/src/main/kotlin/quaedam/projection/swarm/ai/ProjectedPersonAI.kt @@ -1,7 +1,6 @@ package quaedam.projection.swarm.ai import com.google.common.collect.ImmutableList -import net.minecraft.core.Holder import net.minecraft.core.registries.Registries import net.minecraft.tags.TagKey import net.minecraft.world.entity.LivingEntity @@ -11,8 +10,6 @@ import net.minecraft.world.entity.ai.memory.MemoryModuleType import net.minecraft.world.entity.ai.memory.MemoryStatus import net.minecraft.world.entity.ai.memory.NearestVisibleLivingEntities import net.minecraft.world.entity.ai.sensing.SensorType -import net.minecraft.world.entity.ai.village.poi.PoiType -import net.minecraft.world.entity.ai.village.poi.PoiTypes import net.minecraft.world.entity.monster.Monster import net.minecraft.world.entity.schedule.Activity import net.minecraft.world.entity.schedule.Schedule @@ -55,6 +52,7 @@ object ProjectedPersonAI { init { BedInChunkSensor AmusementAI + WorkPoiAI NearestVisibleContainer }