mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Don't render gear on invisible entities (however hilarious that was)
This commit is contained in:
parent
1b3e160c3e
commit
fb78e806ea
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,11 @@ public class LayerGear<T extends EntityLivingBase> extends AbstractPonyLayer<T>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doPonyRender(T entity, float move, float swing, float partialTicks, float ticks, float headYaw, float headPitch, float scale) {
|
protected void doPonyRender(T entity, float move, float swing, float partialTicks, float ticks, float headYaw, float headPitch, float scale) {
|
||||||
|
|
||||||
|
if (entity.isInvisible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
AbstractPonyModel model = getPlayerModel();
|
AbstractPonyModel model = getPlayerModel();
|
||||||
|
|
||||||
Map<BodyPart, Float> renderStackingOffsets = new HashMap<>();
|
Map<BodyPart, Float> renderStackingOffsets = new HashMap<>();
|
||||||
|
|
Loading…
Reference in a new issue