Tighten method selector
This commit is contained in:
parent
bef45b89db
commit
c980677c75
|
|
@ -30,13 +30,12 @@ public abstract class SkinManagerMixin {
|
||||||
|
|
||||||
@WrapOperation
|
@WrapOperation
|
||||||
(
|
(
|
||||||
method = "registerTexture",
|
method = "registerTexture{1}(*Lnet/minecraft/client/resources/SkinManager$SkinTextureCallback;)Lnet/minecraft/util/Identifier",
|
||||||
at = @At(
|
at = @At(
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;getHash()Ljava/lang/String;",
|
target = "Lcom/mojang/authlib/minecraft/MinecraftProfileTexture;getHash()Ljava/lang/String;",
|
||||||
remap = false
|
remap = false
|
||||||
)
|
)
|
||||||
|
|
||||||
)
|
)
|
||||||
private String stashCachedHash(MinecraftProfileTexture texture, Operation<String> original) {
|
private String stashCachedHash(MinecraftProfileTexture texture, Operation<String> original) {
|
||||||
return hashCache.computeIfAbsent(texture, k -> original.call());
|
return hashCache.computeIfAbsent(texture, k -> original.call());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user