File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/dynamic_resources Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 11package org .embeddedt .modernfix .common .mixin .perf .dynamic_resources ;
22
33import com .llamalad7 .mixinextras .injector .ModifyExpressionValue ;
4+ import com .llamalad7 .mixinextras .injector .wrapoperation .Operation ;
5+ import com .llamalad7 .mixinextras .injector .wrapoperation .WrapOperation ;
46import it .unimi .dsi .fastutil .objects .ObjectOpenHashSet ;
57import net .minecraft .client .color .block .BlockColors ;
68import net .minecraft .client .resources .model .BakedModel ;
@@ -126,9 +128,10 @@ private String replaceBackingMaps(String original) {
126128 return original ;
127129 }
128130
129- @ Redirect (method = "<init>" , at = @ At (value = "INVOKE" , target = "Lnet/minecraft/client/resources/model/BlockStateModelLoader;loadAllBlockStates()V" ))
130- private void noInitialBlockStateLoad (BlockStateModelLoader instance ) {
131+ @ WrapOperation (method = "<init>" , at = @ At (value = "INVOKE" , target = "Lnet/minecraft/client/resources/model/BlockStateModelLoader;loadAllBlockStates()V" ))
132+ private void noInitialBlockStateLoad (BlockStateModelLoader instance , Operation < Void > original ) {
131133 dynamicLoader = instance ;
134+ original .call (instance );
132135 }
133136
134137 @ Redirect (method = "<init>" , at = @ At (value = "INVOKE" , target = "Lnet/minecraft/core/DefaultedRegistry;keySet()Ljava/util/Set;" ))
You can’t perform that action at this time.
0 commit comments