File tree Expand file tree Collapse file tree
common/src/main/java/net/caffeinemc/mods/lithium/common/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99public class SharedFields {
1010 public static final AtomicInteger MAXIMUM_BIOME_PARTICLE_CHANCE = new AtomicInteger (Float .floatToIntBits (0.0F )); //Using atomic integer as replacement for atomic float
11+
12+ //mixin.experimental.client_tick.entity.unused_brain must be enabled for the following fields
1113 public static final MemorySlot <?> DUMMY_SLOT ;
1214 public static final Brain <?> DUMMY_BRAIN ;
1315
1416 static {
15- DUMMY_SLOT = MemorySlot .create ();
1617
17- var brain = new Brain <>();
18- ((BrainExtended ) brain ).lithium$pretendAllMemoryTypesRegistered ();
19- DUMMY_BRAIN = brain ;
18+ if (BrainExtended .class .isAssignableFrom (Brain .class )) {
19+ DUMMY_SLOT = MemorySlot .create ();
20+ var brain = new Brain <>();
21+ ((BrainExtended ) brain ).lithium$pretendAllMemoryTypesRegistered ();
22+ DUMMY_BRAIN = brain ;
23+ } else {
24+ DUMMY_SLOT = null ;
25+ DUMMY_BRAIN = null ;
26+ }
2027 }
2128}
You can’t perform that action at this time.
0 commit comments