File tree Expand file tree Collapse file tree
java/fr/iglee42/createcasing/mixins/create/catnip Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package fr .iglee42 .createcasing .mixins .create .catnip ;
2+
3+ import net .createmod .catnip .render .StitchedSprite ;
4+ import net .minecraft .resources .ResourceLocation ;
5+ import org .spongepowered .asm .mixin .Final ;
6+ import org .spongepowered .asm .mixin .Mixin ;
7+ import org .spongepowered .asm .mixin .Mutable ;
8+ import org .spongepowered .asm .mixin .Shadow ;
9+ import org .spongepowered .asm .mixin .injection .At ;
10+ import org .spongepowered .asm .mixin .injection .Inject ;
11+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
12+
13+ import java .util .List ;
14+ import java .util .Map ;
15+ import java .util .concurrent .ConcurrentHashMap ;
16+
17+ @ Mixin (value = StitchedSprite .class , remap = false )
18+ public class StitchedSpriteMixin {
19+ @ Shadow @ Final @ Mutable
20+ private static Map <ResourceLocation , List <StitchedSprite >> ALL ;
21+
22+ @ Inject (method = "<clinit>" , at = @ At ("TAIL" ))
23+ private static void replaceHashMapWithConcurtentHashMap (CallbackInfo ci ) {
24+ ALL = new ConcurrentHashMap <>();
25+ }
26+ }
Original file line number Diff line number Diff line change 2323 " create.arm_interactions.DeployerMixin" ,
2424 " create.arm_interactions.DepotMixin" ,
2525 " create.arm_interactions.SawMixin" ,
26+ " create.catnip.StitchedSpriteMixin" ,
2627 " minecraft.IItemExtensionMixin"
2728 ],
2829 "client" : [
You can’t perform that action at this time.
0 commit comments