From 3cd4cea982d1455a480ac254a207e43d59076f36 Mon Sep 17 00:00:00 2001 From: Max Hyper Date: Mon, 9 Sep 2024 20:18:27 -0300 Subject: [PATCH] possible fix for threading crash --- gradle.properties | 2 +- .../ferreusveritas/dynamictrees/api/registry/TypedRegistry.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index ddb2aed8d..7855cdb43 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ modName=DynamicTrees modId=dynamictrees -modVersion=1.3.1 +modVersion=1.3.2 group=com.ferreusveritas.dynamictrees diff --git a/src/main/java/com/ferreusveritas/dynamictrees/api/registry/TypedRegistry.java b/src/main/java/com/ferreusveritas/dynamictrees/api/registry/TypedRegistry.java index 4141668bb..ecbe3c8e3 100644 --- a/src/main/java/com/ferreusveritas/dynamictrees/api/registry/TypedRegistry.java +++ b/src/main/java/com/ferreusveritas/dynamictrees/api/registry/TypedRegistry.java @@ -159,7 +159,7 @@ public V decode(final JsonObject jsonObject) { } - public static JsonObject putJsonRegistryName(final JsonObject jsonObject, final ResourceLocation registryName) { + public synchronized static JsonObject putJsonRegistryName(final JsonObject jsonObject, final ResourceLocation registryName) { jsonObject.add(Resources.RESOURCE_LOCATION.toString(), new JsonPrimitive(registryName.toString())); return jsonObject; }