Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Просто убрал всё лишние
- @SideOnly(Side.CLIENT)
- public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, int armorSlot)
- {
- ModelBiped model = ArmorModelInstance.getInstance();
- ((IArmorModel)model).setVisibleSection(armorSlot);
- if ((itemStack != null) &&
- ((entityLiving instanceof EntityPlayer)))
- {
- ItemStack chest = ((EntityPlayer)entityLiving).func_82169_q(2);
- if ((itemStack != null) &&
- (ModuleManager.itemHasActiveModule(chest, "Active Camouflage"))) {
- ((IArmorModel)model).setVisibleSection(99);
- }
- }
- if (ModuleManager.itemHasActiveModule(itemStack, "Transparent Armor")) {
- ((IArmorModel)model).setVisibleSection(99);
- }
- ((IArmorModel)model).setRenderSpec(MuseItemUtils.getMuseRenderTag(itemStack, armorSlot));
- return model;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement