diff --git a/src/main/java/mod/acgaming/universaltweaks/tweaks/performance/craftingcache/UTCraftingCache.java b/src/main/java/mod/acgaming/universaltweaks/tweaks/performance/craftingcache/UTCraftingCache.java index 39de9864..bc4a8541 100644 --- a/src/main/java/mod/acgaming/universaltweaks/tweaks/performance/craftingcache/UTCraftingCache.java +++ b/src/main/java/mod/acgaming/universaltweaks/tweaks/performance/craftingcache/UTCraftingCache.java @@ -55,7 +55,7 @@ public static IRecipe findMatchingRecipe(InventoryCrafting craftMatrix, World wo return findMatchingRecipeDefault(craftMatrix, worldIn); } - public static UTOptionalContent getOrCreateCachedRecipe(InventoryCrafting craftMatrix) + public static synchronized UTOptionalContent getOrCreateCachedRecipe(InventoryCrafting craftMatrix) { UTCraftMatrixCacheKey matrixKey = new UTCraftMatrixCacheKey(craftMatrix); UTOptionalContent optionalContent = NON_NBT_CRAFT_CACHE.getAndMoveToFirst(matrixKey.hashCode());