From 2caa54f4721112e91b39d6fd725fb7e012124ae7 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Fri, 12 Jul 2024 12:18:47 +0200 Subject: [PATCH] Fix infinite recursion in ValueDeseralizationContext --- .../api/evaluate/variable/ValueDeseralizationContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/integrateddynamics/api/evaluate/variable/ValueDeseralizationContext.java b/src/main/java/org/cyclops/integrateddynamics/api/evaluate/variable/ValueDeseralizationContext.java index f1bc463318a..ce1ceb4ee85 100644 --- a/src/main/java/org/cyclops/integrateddynamics/api/evaluate/variable/ValueDeseralizationContext.java +++ b/src/main/java/org/cyclops/integrateddynamics/api/evaluate/variable/ValueDeseralizationContext.java @@ -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()); }