mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Jetpack and gas mask practically done :)
This commit is contained in:
1 parent
d21ef524a0
commit
37a1a0ab40
4 files changed
+21
-5
No files matched your search
@@ -9,6 +9,7 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
@@ -37,9 +38,14 @@ public class ModelCustomArmor extends ModelBiped
|
||||
public void init(Entity entity, float f, float f1, float f2, float f3, float f4, float size)
|
||||
{
|
||||
reset();
|
||||
|
||||
if(entity instanceof EntityLivingBase)
|
||||
{
|
||||
isSneak = ((EntityLivingBase)entity).isSneaking();
|
||||
}
|
||||
|
||||
if(modelType.armorSlot == 0)
|
||||
{
|
||||
{
|
||||
bipedHead.isHidden = false;
|
||||
bipedHead.showModel = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user