Skip to content

Commit 5d7d41e

Browse files
committed
Invert cape swing setting
1 parent 352ac10 commit 5d7d41e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/java/org/visuals/legacy/animatium/config/category/MovementConfigCategory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class MovementConfigCategory extends Category {
3434
// (Movement) Cape
3535
public boolean capeMovement = true;
3636
public boolean disableCapeLean = false;
37-
public boolean capeSwingRotation = true;
37+
public boolean disableCapeSwingRotation = true;
3838
public boolean capeChestplateTranslation = true;
3939
public boolean capeSneakPosition = true;
4040
// (Movement) Other
@@ -63,7 +63,7 @@ public EntryBundle bundle() {
6363
bundle.group((EntryBundle.Group) new EntryBundle.Group("cape")
6464
.booleanEntry("capeMovement")
6565
.booleanEntry("disableCapeLean")
66-
.booleanEntry("capeSwingRotation")
66+
.booleanEntry("disableCapeSwingRotation")
6767
.booleanEntry("capeChestplateTranslation")
6868
.booleanEntry("capeSneakPosition"));
6969

src/main/java/org/visuals/legacy/animatium/mixins/v1/entity/cape_movement/MixinModelFeatureRenderer_CapeSwinging.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
public abstract class MixinModelFeatureRenderer_CapeSwinging {
4444
@Inject(method = "renderModel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/model/Model;setupAnim(Ljava/lang/Object;)V", shift = At.Shift.AFTER))
4545
private <S> void animatium$capeSwingRotation(final SubmitNodeStorage.ModelSubmit<S> submit, final RenderType renderType, final VertexConsumer consumer, final OutlineBufferSource outlineBufferSource, final MultiBufferSource.BufferSource crumblingBufferSource, final CallbackInfo ci) {
46-
if (Animatium.isEnabled() && !AnimatiumConfig.instance().movement.capeSwingRotation && submit.model() instanceof PlayerCapeModel playerCapeModel) {
46+
if (Animatium.isEnabled() && AnimatiumConfig.instance().movement.disableCapeSwingRotation && submit.model() instanceof PlayerCapeModel playerCapeModel) {
4747
playerCapeModel.body.yRot = 0;
4848
}
4949
}

src/main/java/org/visuals/legacy/animatium/util/config/Version.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public enum Version {
4646
movement.sneakAnimation = SneakAnimationSetting.V1_7;
4747
movement.capeMovement = true;
4848
movement.disableCapeLean = false;
49-
movement.capeSwingRotation = false;
49+
movement.disableCapeSwingRotation = false;
5050
movement.capeChestplateTranslation = true;
5151
movement.capeSneakPosition = true;
5252
movement.rotateBackwardsWalking = true;
@@ -150,7 +150,7 @@ public enum Version {
150150
movement.sneakAnimation = SneakAnimationSetting.V1_8;
151151
movement.capeMovement = true;
152152
movement.disableCapeLean = false;
153-
movement.capeSwingRotation = false;
153+
movement.disableCapeSwingRotation = false;
154154
movement.capeChestplateTranslation = false;
155155
movement.capeSneakPosition = false;
156156
movement.rotateBackwardsWalking = true;
@@ -268,7 +268,7 @@ public enum Version {
268268
movement.sneakAnimation = SneakAnimationSetting.VANILLA;
269269
movement.capeMovement = false;
270270
movement.disableCapeLean = false;
271-
movement.capeSwingRotation = true;
271+
movement.disableCapeSwingRotation = true;
272272
movement.capeChestplateTranslation = false;
273273
movement.capeSneakPosition = false;
274274
movement.rotateBackwardsWalking = false;

src/main/resources/assets/animatium/lang/en_us.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"animatium.capeMovement.description": "Changes the cape model movement to be how it used to be in <=1.12.x.",
3333
"animatium.disableCapeLean": "[OF] Disable cape lean",
3434
"animatium.disableCapeLean.description": "Enable/disable the cape lean. Turning this on will match OptiFine cape physics.",
35-
"animatium.capeSwingRotation": "[1.20] Toggle cape moving while swinging arm",
36-
"animatium.capeSwingRotation.description": "Enable/disable the cape from swinging in unison with the body while the player is swinging their arm. Turn this off to be like it was in <=1.20.x.",
35+
"animatium.disableCapeSwingRotation": "[1.20] Disable cape moving while swinging arm",
36+
"animatium.disableCapeSwingRotation.description": "Disables the cape from swinging in unison with the body while the player is swinging their arm like it was in <=1.20.x.",
3737
"animatium.capeChestplateTranslation": "[1.7] Don't move cape while chestplate is equipped",
3838
"animatium.capeChestplateTranslation.description": "Stops equipping a chestplate causing the cape to be translated a few pixels away like in <=1.15.x",
3939
"animatium.capeSneakPosition": "[1.7] Cape sneaking position",

0 commit comments

Comments
 (0)