Fixed crash

This commit is contained in:
Sollace 2022-12-10 17:30:02 +00:00
parent aab7f78031
commit 897134507f

View file

@ -16,7 +16,7 @@ import java.util.UUID;
@Mixin(DefaultSkinHelper.class) @Mixin(DefaultSkinHelper.class)
abstract class MixinDefaultSkinHelper { abstract class MixinDefaultSkinHelper {
@Inject(method = "getTexture()Lnet/minecraft/util/Identifier;", @Inject(method = "getTexture()Lnet/minecraft/util/Identifier;",
at = @At("HEAD"), at = @At("RETURN"),
cancellable = true) cancellable = true)
private static void onGetTexture(CallbackInfoReturnable<Identifier> cir) { private static void onGetTexture(CallbackInfoReturnable<Identifier> cir) {
if (MineLittlePony.getInstance().getConfig().ponyLevel.get() == PonyLevel.PONIES) { if (MineLittlePony.getInstance().getConfig().ponyLevel.get() == PonyLevel.PONIES) {