Additional context
I was trying to access the Holder<DimensionManager> variable in the CommonPlayerSpawnInfo class. The code looks like this:
final StructureModifier<World> worldHolder = commonPlayerSpawnInfoStructure.getHolders(
MinecraftReflection.getDimensionManager(),
Converters.holder(BukkitConverters.getDimensionConverter(),
WrappedRegistry.getDimensionRegistry())
);
Doing this results in ProtocolLib throwing out this error: No registry found for class net.minecraft.world.level.dimension.DimensionType.
This is weird considering that there's a method called getDimensionRegistry inside the WrappedRegistry class...
Any clues of why? Thank you!
Describe the bug Invoking
WrappedRegistry#getDimensionRegistry
throws a null pointer exception.To Reproduce
Expected behavior This should not happen.
Version Info ProtocolLib dump
Additional context I was trying to access the
Holder<DimensionManager>
variable in theCommonPlayerSpawnInfo
class. The code looks like this:Doing this results in ProtocolLib throwing out this error:
No registry found for class net.minecraft.world.level.dimension.DimensionType
. This is weird considering that there's a method calledgetDimensionRegistry
inside theWrappedRegistry
class... Any clues of why? Thank you!Edit: clarified some things