Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

game crashes if this mod is installed alongside repurposed structures while loading underground bastion #49

Open
Hugs288 opened this issue Aug 27, 2024 · 3 comments

Comments

@Hugs288
Copy link

Hugs288 commented Aug 27, 2024

crash-2024-08-27_22.25.08-server.txt

from the creator of repurposed structures:

The problematic mod is More Mob Variant’s mixin. Please report to them and link this issue report so they know what to fix

net.minecraft.class_1613.handler$gaj000$moremobvariants$onInitialize(cl

@TelepathicGrunt
Copy link

Issue report I originally got before seeing the mixin in the crash: TelepathicGrunt/RepurposedStructures#347

@TelepathicGrunt
Copy link

Issue is this getBiome call using the ServerWorld is not safe for being called in worldgen

variant = Variants.getRandomVariant(EntityType.SKELETON, ((SkeletonEntity)(Object)this).getRandom().nextLong(), world.getBiome(((SkeletonEntity)(Object)this).getBlockPos()), null, world.getMoonSize());

When worldgen is spawning the mob, it is using a worldGenRegion. This mixin is using the ServerLevel however that the entity is using. So what happens is within the generating chunk, it goes to spawn entity, call ServerLevel's getBiome, and then crashes because the chunk it is trying to get is the one that is generating at that point.

@TelepathicGrunt
Copy link

Another user is reporting this mod is breaking on 1.21 fabric as well when skeletons are spawned in structures TelepathicGrunt/RepurposedStructures#351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants