mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 08:14:23 +01:00
Fixed more mixins
This commit is contained in:
parent
6d203d07b1
commit
b80f2da500
2 changed files with 5 additions and 5 deletions
|
@ -67,8 +67,8 @@ dependencies {
|
||||||
include "com.github.MineLittlePony:Kirin:${project.kirin_version}"
|
include "com.github.MineLittlePony:Kirin:${project.kirin_version}"
|
||||||
|
|
||||||
// TODO: HD Skins can be made optional later
|
// TODO: HD Skins can be made optional later
|
||||||
modCompile "com.github.MineLittlePony:HDSkins:${hd_skins_version}"
|
modCompile "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}"
|
||||||
include "com.github.MineLittlePony:HDSkins:${hd_skins_version}"
|
include "com.github.MineLittlePony:HDSkins:${project.hd_skins_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.util.UUID;
|
||||||
@Mixin(DefaultSkinHelper.class)
|
@Mixin(DefaultSkinHelper.class)
|
||||||
public abstract class MixinDefaultPlayerSkin {
|
public abstract class MixinDefaultPlayerSkin {
|
||||||
|
|
||||||
@Inject(method = "getTexture",
|
@Inject(method = "getTexture()Lnet/minecraft/util/Identifier;",
|
||||||
at = @At("HEAD"),
|
at = @At("HEAD"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private static void legacySkin(CallbackInfoReturnable<Identifier> cir) {
|
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"),
|
at = @At("HEAD"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private static void defaultSkin(UUID uuid, CallbackInfoReturnable<Identifier> cir) {
|
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"),
|
at = @At("HEAD"),
|
||||||
cancellable = true)
|
cancellable = true)
|
||||||
private static void skinType(UUID uuid, CallbackInfoReturnable<String> cir) {
|
private static void skinType(UUID uuid, CallbackInfoReturnable<String> cir) {
|
||||||
|
|
Loading…
Reference in a new issue