Fix datapack driven worldgen not working on dedicated servers. Closes #1478

This commit is contained in:
modmuss50 2021-06-13 00:50:44 +01:00
parent 198a96213c
commit e2961fee74
3 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -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',

View file

@ -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<NbtElement> ofRegistryOps(DynamicOps<NbtElement> delegate, ResourceManager resourceManager, DynamicRegistryManager impl) {
RegistryOps<NbtElement> registryOps = RegistryOps.of(delegate, resourceManager, impl);
RegistryOps<NbtElement> registryOps = RegistryOps.method_36574(delegate, resourceManager, impl);
PersistentDynamicRegistryHandler.remapDynamicRegistries((DynamicRegistryManager.Impl) impl, fabric_saveDir);
return registryOps;
}