AI Improvements

AI Improvements

86M Downloads

server overloaded when using this mod

littlepianist opened this issue ยท 5 comments

commented

LivingSpawnEvent is split into multiple specific sub events, but we're only listening for the parent event and none of the specific ones. AllowDespawn is one of these sub events. I'll look into which sub event we should be listening to.

commented

Seems to be a leftover from Minecraft 1.17.1, where the EntityJoinWorldEvent broke. The mod now works without LivingSpawnEvent again. I'll push an update to remove it, should make it perform much better.

commented

image

I don't think this is being caused by AI improvements. We are only showing in the trace due to the spawn event being triggered. Which we use to modify the AIs before they join the world. Seeing as this is coming from canEntityDespawn something else is likely going wrong.

I would also need the version of MC, forge, and the mod to fully confirm. However, based on latest 1.18 we only intercept entity join world and entity spawn event.

commented

@bl4ckscor3 can you check the life cycle of forge to see if they changed the events.

commented

Nice, good thing I poked you as I likely would have not got a chance to confirm it until next month.