Skip to content

Commit

Permalink
Tweak scale getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtuoel committed Dec 28, 2022
1 parent a8d4e9e commit 1b46d9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/virtuoel/pehkui/mixin/EntityMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public Map<ScaleType, ScaleData> pehkui_getScales()
{
synchronized (this)
{
scaleTypes = pehkui_scaleTypes;

if (scaleTypes == null)
{
pehkui_scaleTypes = scaleTypes = Object2ObjectMaps.synchronize(new Object2ObjectOpenHashMap<>());
Expand Down

0 comments on commit 1b46d9d

Please sign in to comment.