Skip to content

Commit

Permalink
[1.21.3] Fix serialization of dynamic registry entries in data map da…
Browse files Browse the repository at this point in the history
…tagen (#1648)
  • Loading branch information
dhyces authored Oct 31, 2024
1 parent 7205d37 commit 62eb61a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import net.minecraft.data.CachedOutput;
import net.minecraft.data.DataProvider;
import net.minecraft.data.PackOutput;
import net.minecraft.resources.RegistryOps;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.TagKey;
Expand Down Expand Up @@ -63,7 +62,7 @@ public CompletableFuture<?> run(CachedOutput cache) {
return lookupProvider.thenCompose(provider -> {
gather(provider);

final DynamicOps<JsonElement> dynamicOps = RegistryOps.create(JsonOps.INSTANCE, provider);
final DynamicOps<JsonElement> dynamicOps = provider.createSerializationContext(JsonOps.INSTANCE);

return CompletableFuture.allOf(this.builders.entrySet().stream().map(entry -> {
DataMapType<?, ?> type = entry.getKey();
Expand Down

0 comments on commit 62eb61a

Please sign in to comment.