MrCrayfish's Gun Mod

MrCrayfish's Gun Mod

25M Downloads

Incompatible with Armour's Workshop

RaindeerGamez opened this issue ยท 1 comments

commented

When I have the Gun Mod and Armour's Workshop both installed at the same time, the item skins for Armour's gets disabled and don't show in third person. This is without using the skins on the guns or anything like that.

commented

Unfortuantely due to how I patched the game in 1.12, there is no a straight forward fix. In newer versions of Minecraft, armor rotations are actually copied from the player model.

1.12

public void setModelAttributes(ModelBase model)
    {
        this.swingProgress = model.swingProgress;
        this.isRiding = model.isRiding;
        this.isChild = model.isChild;
    }

1.16

public void setModelAttributes(BipedModel<T> modelIn) {
      super.copyModelAttributesTo(modelIn); // Calls method to run same code as 1.12
      modelIn.leftArmPose = this.leftArmPose;
      modelIn.rightArmPose = this.rightArmPose;
      modelIn.isSneak = this.isSneak;
      modelIn.bipedHead.copyModelAngles(this.bipedHead);
      modelIn.bipedHeadwear.copyModelAngles(this.bipedHeadwear);
      modelIn.bipedBody.copyModelAngles(this.bipedBody);
      modelIn.bipedRightArm.copyModelAngles(this.bipedRightArm);
      modelIn.bipedLeftArm.copyModelAngles(this.bipedLeftArm);
      modelIn.bipedRightLeg.copyModelAngles(this.bipedRightLeg);
      modelIn.bipedLeftLeg.copyModelAngles(this.bipedLeftLeg);
   }