Quark Oddities

Quark Oddities

22M Downloads

rendering variant entity crash

Aceplante opened this issue ยท 1 comments

commented

The game crashed whilst rendering entity in world
Error: java.lang.NullPointerException: Cannot invoke "com.google.common.collect.ListMultimap.get(Object)" because "vazkii.quark.content.client.module.VariantAnimalTexturesModule.textures" is null

A moment before, I had enabled variant textures, but didnt reload. Could that be the issue?

Forge 1.18.2

commented

It looks like VariantAnimalTexturesModule only initializes the textures data structure once in ClientSetup if the module is enabled:

@Override
public void clientSetup() {
if(!enabled)
return;
textures = Multimaps.newListMultimap(new EnumMap<>(VariantTextureType.class), ArrayList::new);

So yeah, it will crash if the module is disabled on game startup then enabled at runtime.