From f5e0e355ae9fd7765ebe83cf88c1ce9a6ccddbf6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 22 Aug 2018 21:55:30 +0200 Subject: [PATCH] Removed the null checks. --- .../com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java b/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java index 4d36d09d..5244af0a 100644 --- a/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java +++ b/src/main/java/com/minelittlepony/hdskins/gui/GuiSkinsMineLP.java @@ -69,7 +69,7 @@ public class GuiSkinsMineLP extends GuiSkins { return; } - mc.getSoundHandler().playSound(PositionedSoundRecord.getMasterRecord(SoundEvents.BLOCK_BREWING_STAND_BREW, 1)); + playSound(SoundEvents.BLOCK_BREWING_STAND_BREW); isWet = wet; localPlayer.releaseTextures(); @@ -84,8 +84,9 @@ public class GuiSkinsMineLP extends GuiSkins { @Override public void onSetLocalSkin(Type type) { super.onSetLocalSkin(type); + MineLittlePony.logger.debug("Invalidating old local skin, checking updated local skin"); - if (ponyManager != null && type == Type.SKIN) { + if (type == Type.SKIN) { ponyManager.removePony(localPlayer.getLocal(Type.SKIN).getTexture()); } } @@ -95,7 +96,7 @@ public class GuiSkinsMineLP extends GuiSkins { super.onSetRemoteSkin(type, location, profileTexture); MineLittlePony.logger.debug("Invalidating old remote skin, checking updated remote skin"); - if (ponyManager != null && type == Type.SKIN) { + if (type == Type.SKIN) { ponyManager.removePony(location); } }