File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
forge/src/main/java/org/embeddedt/modernfix/forge/mixin/perf/faster_ingredients Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1717import org .spongepowered .asm .mixin .Unique ;
1818import org .spongepowered .asm .mixin .injection .At ;
1919import org .spongepowered .asm .mixin .injection .Inject ;
20+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
2021import org .spongepowered .asm .mixin .injection .callback .CallbackInfoReturnable ;
2122
2223import java .util .ArrayList ;
@@ -169,4 +170,9 @@ private ItemStack[] computeItemsArray() {
169170 public void mfix$clearReference () {
170171 this .mfix$cachedItemStacks = null ;
171172 }
173+
174+ @ Inject (method = "invalidate" , at = @ At ("RETURN" ), remap = false )
175+ private void invalidateSoftReference (CallbackInfo ci ) {
176+ mfix$clearReference ();
177+ }
172178}
You can’t perform that action at this time.
0 commit comments