Environmental

Environmental

8M Downloads

Crashes during world-gen

InteJason opened this issue · 2 comments

commented

Further info:

It looks like the MobEntityMixin that provides setEquipmentBasedOnDifficulty is accessing the server world while the world is still generating to look at structure starts, which results in a deadlock.

Relevant thread dump: https://gist.github.com/noobanidus/2585983b2541d8f87c748185e1262a10

commented

Ah ok so checking for structure bounds for a mob that is placed at structure creation may cause deadlocks. I remember having this issue when I tried to make my ConfiguredFeatures only place blocks within structure boundaries.

So when the mixin fires for mobs that are spawned as part of structure generation like my Underground Bastion skeleton horses and skeletons, there’s the chance it could deadlock. I’m not sure how you could check to see if the mob is being generated during worldgen at the point of the mixin as you’ll have to skip adding pouches if inside worldgen since you can’t safely check structure boundaries.