File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
common/src/main/java/org/embeddedt/modernfix/common/mixin/safety Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313import org .spongepowered .asm .mixin .injection .Inject ;
1414import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
1515
16+ import java .util .Collections ;
1617import java .util .Map ;
17- import java .util .concurrent .ConcurrentHashMap ;
1818
1919@ Mixin (value = ItemProperties .class , priority = 700 )
2020@ ClientOnlyMixin
@@ -24,7 +24,7 @@ public class ItemPropertiesMixin {
2424
2525 @ Inject (method = "<clinit>" , at = @ At ("RETURN" ))
2626 private static void useConcurrentMaps (CallbackInfo ci ) {
27- GENERIC_PROPERTIES = new ConcurrentHashMap <> (GENERIC_PROPERTIES );
28- PROPERTIES = new ConcurrentHashMap <> (PROPERTIES );
27+ GENERIC_PROPERTIES = Collections . synchronizedMap (GENERIC_PROPERTIES );
28+ PROPERTIES = Collections . synchronizedMap (PROPERTIES );
2929 }
3030}
You can’t perform that action at this time.
0 commit comments