mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Removed the null checks.
This commit is contained in:
parent
4aecea94cb
commit
f5e0e355ae
1 changed files with 4 additions and 3 deletions
|
@ -69,7 +69,7 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mc.getSoundHandler().playSound(PositionedSoundRecord.getMasterRecord(SoundEvents.BLOCK_BREWING_STAND_BREW, 1));
|
playSound(SoundEvents.BLOCK_BREWING_STAND_BREW);
|
||||||
|
|
||||||
isWet = wet;
|
isWet = wet;
|
||||||
localPlayer.releaseTextures();
|
localPlayer.releaseTextures();
|
||||||
|
@ -84,8 +84,9 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
@Override
|
@Override
|
||||||
public void onSetLocalSkin(Type type) {
|
public void onSetLocalSkin(Type type) {
|
||||||
super.onSetLocalSkin(type);
|
super.onSetLocalSkin(type);
|
||||||
|
|
||||||
MineLittlePony.logger.debug("Invalidating old local skin, checking updated local skin");
|
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());
|
ponyManager.removePony(localPlayer.getLocal(Type.SKIN).getTexture());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +96,7 @@ public class GuiSkinsMineLP extends GuiSkins {
|
||||||
super.onSetRemoteSkin(type, location, profileTexture);
|
super.onSetRemoteSkin(type, location, profileTexture);
|
||||||
|
|
||||||
MineLittlePony.logger.debug("Invalidating old remote skin, checking updated remote skin");
|
MineLittlePony.logger.debug("Invalidating old remote skin, checking updated remote skin");
|
||||||
if (ponyManager != null && type == Type.SKIN) {
|
if (type == Type.SKIN) {
|
||||||
ponyManager.removePony(location);
|
ponyManager.removePony(location);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue