Fixed more mixins

This commit is contained in:
Sollace 2019-05-28 16:59:57 +02:00
parent 6d203d07b1
commit b80f2da500
2 changed files with 5 additions and 5 deletions

View file

@ -67,8 +67,8 @@ dependencies {
include "com.github.MineLittlePony:Kirin:${project.kirin_version}"
// TODO: HD Skins can be made optional later
modCompile "com.github.MineLittlePony:HDSkins:${hd_skins_version}"
include "com.github.MineLittlePony:HDSkins:${hd_skins_version}"
modCompile "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}"
include "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}"
}
processResources {

View file

@ -17,7 +17,7 @@ import java.util.UUID;
@Mixin(DefaultSkinHelper.class)
public abstract class MixinDefaultPlayerSkin {
@Inject(method = "getTexture",
@Inject(method = "getTexture()Lnet/minecraft/util/Identifier;",
at = @At("HEAD"),
cancellable = true)
private static void legacySkin(CallbackInfoReturnable<Identifier> cir) {
@ -26,7 +26,7 @@ public abstract class MixinDefaultPlayerSkin {
}
}
@Inject(method = "getTexture",
@Inject(method = "getTexture(Ljava/util/UUID;)Lnet/minecraft/util/Identifier;",
at = @At("HEAD"),
cancellable = true)
private static void defaultSkin(UUID uuid, CallbackInfoReturnable<Identifier> cir) {
@ -35,7 +35,7 @@ public abstract class MixinDefaultPlayerSkin {
}
}
@Inject(method = "getModel",
@Inject(method = "getModel(Ljava/util/UUID;)Ljava/lang/String;",
at = @At("HEAD"),
cancellable = true)
private static void skinType(UUID uuid, CallbackInfoReturnable<String> cir) {