Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 135f8cd

Browse files
committed
fix EntityBehavourCoordinator disposing
1 parent b21f82a commit 135f8cd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
kotlin.daemon.jvmargs=-Xmx3000m
2-
dockyard.version=0.10.4.1-SNAPSHOT
2+
dockyard.version=0.10.4.2-SNAPSHOT
33
kotlin.code.style=official

src/main/kotlin/io/github/dockyardmc/entity/ai/EntityBehaviourCoordinator.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ abstract class EntityBehaviourCoordinator(val entity: Entity) : Freezable(), Dis
102102
eventPool.dispose()
103103
activeBehaviour?.onStop(entity, true)
104104
activeBehaviour?.getBehaviourFuture()?.cancel(false)
105+
stopBehaviour()
106+
behaviours.clear()
107+
freeze()
108+
eventPool.dispose()
109+
isEvaluating.set(false)
110+
pathfinder.abort()
111+
navigator.dispose()
105112
}
106-
107113
}

0 commit comments

Comments
 (0)