From 75b6c21b564e0b7d8829694d8d7fd16a1183b19c Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 26 Aug 2018 03:39:59 +0200 Subject: [PATCH] Don't do this. The line breaks mess with logging --- .../hdskins/mixin/MixinSkullRenderer.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java b/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java index 52156508..45938558 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/mixin/MixinSkullRenderer.java @@ -17,21 +17,19 @@ import javax.annotation.Nullable; @Mixin(TileEntitySkullRenderer.class) public abstract class MixinSkullRenderer extends TileEntitySpecialRenderer { - @Redirect( - method = "renderSkull", - at = @At( - value = "INVOKE", + @Redirect(method = "renderSkull", + at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/tileentity/TileEntitySkullRenderer;bindTexture(Lnet/minecraft/util/ResourceLocation;)V", ordinal = 4)) - private void onBindTexture(TileEntitySkullRenderer tesr, ResourceLocation rl, float x, float y, float z, EnumFacing facing, float rotation, - int meta, - @Nullable GameProfile profile, int p_180543_8_, float ticks) { + private void onBindTexture(TileEntitySkullRenderer tesr, ResourceLocation rl, float x, float y, float z, EnumFacing facing, float rotation, int meta, @Nullable GameProfile profile, int p_180543_8_, float ticks) { if (profile != null) { ResourceLocation skin = HDSkinManager.INSTANCE.getTextures(profile).get(Type.SKIN); + if (skin != null) { rl = skin; } } + bindTexture(rl); } }