Skip to content

Commit fc52570

Browse files
committed
Update cache_profile_texture_url for 1.20.2
1 parent 9efe912 commit fc52570

File tree

1 file changed

+2
-2
lines changed
  • common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/cache_profile_texture_url

1 file changed

+2
-2
lines changed

common/src/main/java/org/embeddedt/modernfix/common/mixin/perf/cache_profile_texture_url/SkinManagerMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
import java.util.concurrent.ExecutionException;
1313
import java.util.concurrent.TimeUnit;
1414

15-
@Mixin(SkinManager.class)
15+
@Mixin(targets = {"net/minecraft/client/resources/SkinManager$TextureCache" })
1616
public class SkinManagerMixin {
1717
@Unique
1818
private final Cache<MinecraftProfileTexture, String> mfix$hashCache = CacheBuilder.newBuilder()
1919
.expireAfterAccess(60, TimeUnit.SECONDS)
2020
.concurrencyLevel(1)
2121
.build();
2222

23-
@Redirect(method = "registerTexture(Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;Lcom/mojang/authlib/minecraft/MinecraftProfileTexture$Type;Lnet/minecraft/client/resources/SkinManager$SkinTextureCallback;)Lnet/minecraft/resources/ResourceLocation;",
23+
@Redirect(method = { "getOrLoad", "registerTexture" },
2424
at = @At(value = "INVOKE", target = "Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;getHash()Ljava/lang/String;", remap = false))
2525
private String useCachedHash(MinecraftProfileTexture texture) {
2626
// avoid lambda allocation for common case

0 commit comments

Comments
 (0)