Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Make dog bed render cache thread-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
percivalalb committed Nov 20, 2022
1 parent 4a45b42 commit 9a6e08f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class DogBedModel implements BakedModel {
private BlockModel model;
private BakedModel bakedModel;

private final Map<Triple<IRegistryDelegate<ICasingMaterial>, IRegistryDelegate<IBeddingMaterial>, Direction>, BakedModel> cache = Maps.newHashMap();
private final Map<Triple<IRegistryDelegate<ICasingMaterial>, IRegistryDelegate<IBeddingMaterial>, Direction>, BakedModel> cache = Maps.newConcurrentMap();

public DogBedModel(ForgeModelBakery modelLoader, BlockModel model, BakedModel bakedModel) {
this.modelLoader = modelLoader;
Expand Down

0 comments on commit 9a6e08f

Please sign in to comment.