From e2961fee74a30cf8c4ce2b82987e51f19275197b Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sun, 13 Jun 2021 00:50:44 +0100 Subject: [PATCH] Fix datapack driven worldgen not working on dedicated servers. Closes #1478 --- build.gradle | 2 +- fabric-registry-sync-v0/build.gradle | 2 +- .../java/net/fabricmc/fabric/mixin/registry/sync/MixinMain.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 43b0ae65c..3e84501fd 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ plugins { def ENV = System.getenv() class Globals { - static def baseVersion = "0.35.0" + static def baseVersion = "0.35.1" static def mcVersion = "1.17" static def yarnVersion = "+build.6" static def loaderVersion = "0.11.3" diff --git a/fabric-registry-sync-v0/build.gradle b/fabric-registry-sync-v0/build.gradle index a3438b29f..3c298e102 100644 --- a/fabric-registry-sync-v0/build.gradle +++ b/fabric-registry-sync-v0/build.gradle @@ -1,5 +1,5 @@ archivesBaseName = "fabric-registry-sync-v0" -version = getSubprojectVersion(project, "0.7.9") +version = getSubprojectVersion(project, "0.7.10") moduleDependencies(project, [ 'fabric-api-base', diff --git a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinMain.java b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinMain.java index f987e4e9d..fdaa848b4 100644 --- a/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinMain.java +++ b/fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinMain.java @@ -48,7 +48,7 @@ public class MixinMain { @Redirect(method = "main", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/dynamic/RegistryOps;method_36574(Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/util/registry/DynamicRegistryManager;)Lnet/minecraft/util/dynamic/RegistryOps;")) private static RegistryOps ofRegistryOps(DynamicOps delegate, ResourceManager resourceManager, DynamicRegistryManager impl) { - RegistryOps registryOps = RegistryOps.of(delegate, resourceManager, impl); + RegistryOps registryOps = RegistryOps.method_36574(delegate, resourceManager, impl); PersistentDynamicRegistryHandler.remapDynamicRegistries((DynamicRegistryManager.Impl) impl, fabric_saveDir); return registryOps; }