Skip to content

Commit

Permalink
Synchronize cached recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Dec 28, 2023
1 parent 45f6eb4 commit 07f1f3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static IRecipe findMatchingRecipe(InventoryCrafting craftMatrix, World wo
return findMatchingRecipeDefault(craftMatrix, worldIn);
}

public static UTOptionalContent<IRecipe> getOrCreateCachedRecipe(InventoryCrafting craftMatrix)
public static synchronized UTOptionalContent<IRecipe> getOrCreateCachedRecipe(InventoryCrafting craftMatrix)
{
UTCraftMatrixCacheKey matrixKey = new UTCraftMatrixCacheKey(craftMatrix);
UTOptionalContent<IRecipe> optionalContent = NON_NBT_CRAFT_CACHE.getAndMoveToFirst(matrixKey.hashCode());
Expand Down

0 comments on commit 07f1f3d

Please sign in to comment.