From 85254e46779d89088cdc440de433f8e4b572a98d Mon Sep 17 00:00:00 2001 From: Caedis Date: Sat, 18 May 2024 21:45:58 -0500 Subject: [PATCH] init on first call --- src/main/java/emt/item/armor/wings/ItemFeatherWing.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/emt/item/armor/wings/ItemFeatherWing.java b/src/main/java/emt/item/armor/wings/ItemFeatherWing.java index 7823315..1b76051 100644 --- a/src/main/java/emt/item/armor/wings/ItemFeatherWing.java +++ b/src/main/java/emt/item/armor/wings/ItemFeatherWing.java @@ -23,8 +23,8 @@ public class ItemFeatherWing extends ItemArmor implements IRunicArmor { public int visDiscount = 0; - @SideOnly(Side.CLIENT) - private static final ModelWings MODEL_WINGS = new ModelWings(); + + private static ModelWings MODEL_WINGS = null; public ItemFeatherWing(ArmorMaterial material, int par3, int par4) { super(material, par3, par4); @@ -53,6 +53,8 @@ public String getArmorTexture(ItemStack stack, Entity entity, int slot, String t @Override @SideOnly(Side.CLIENT) public ModelBiped getArmorModel(EntityLivingBase entity, ItemStack stack, int armorSlot) { + if (MODEL_WINGS == null) MODEL_WINGS = new ModelWings(); + if (entity instanceof EntityPlayer && stack != null && stack.stackTagCompound != null && stack.stackTagCompound.hasKey("isJumping")) {