Skip to content

Commit

Permalink
Fix infinite recursion in ValueDeseralizationContext
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 12, 2024
1 parent 53a807d commit 2caa54f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public record ValueDeseralizationContext(HolderLookup.Provider holderLookupProvider) {
public static ValueDeseralizationContext of(Level level) {
if (level == null) {
return ofAllEnabled();
return new ValueDeseralizationContext(ServerLifecycleHooks.getCurrentServer().registryAccess());
}
return new ValueDeseralizationContext(level.registryAccess());
}
Expand Down

0 comments on commit 2caa54f

Please sign in to comment.