mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
More Client fixes
This commit is contained in:
1 parent
4384dbe376
commit
d4ca659ed0
24 files changed
+218
-233
No files matched your search
@@ -41,18 +41,17 @@ public class ModelCustomArmor extends ModelBiped
|
||||
resetPart(bipedLeftLeg, 0, 0, 0);
|
||||
|
||||
bipedHeadwear.cubeList.clear();
|
||||
bipedEars.cubeList.clear();
|
||||
bipedCloak.cubeList.clear();
|
||||
}
|
||||
|
||||
public void init(Entity entity, float f, float f1, float f2, float f3, float f4, float size)
|
||||
{
|
||||
reset();
|
||||
|
||||
isSneak = entity.isSneaking();
|
||||
isRiding = entity.isRiding();
|
||||
|
||||
if(entity instanceof EntityLivingBase)
|
||||
{
|
||||
isSneak = ((EntityLivingBase)entity).isSneaking();
|
||||
isRiding = ((EntityLivingBase)entity).isRiding();
|
||||
isChild = ((EntityLivingBase)entity).isChild();
|
||||
}
|
||||
|
||||
@@ -246,10 +245,11 @@ public class ModelCustomArmor extends ModelBiped
|
||||
@Override
|
||||
public void render(Entity entity, float par2, float par3, float par4, float par5, float par6, float par7)
|
||||
{
|
||||
isSneak = entity.isSneaking();
|
||||
isRiding = entity.isRiding();
|
||||
|
||||
if(entity instanceof EntityLivingBase)
|
||||
{
|
||||
isSneak = ((EntityLivingBase)entity).isSneaking();
|
||||
isRiding = ((EntityLivingBase)entity).isRiding();
|
||||
isChild = ((EntityLivingBase)entity).isChild();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user