GithubHelp home page GithubHelp logo

Comments (3)

ethanhs avatar ethanhs commented on July 26, 2024

The following diff on top of the 1.19 branch worked for me to get this mod working on 1.19.2

diff --git a/src/main/java/io/github/apace100/cosmetic_armor/mixin/MixinCosmeticArmorVisibility.java b/src/main/java/io/github/apace100/cosmetic_armor/mixin/MixinCosmeticArmorVisibility.java
index 844585b..927a0f5 100644
--- a/src/main/java/io/github/apace100/cosmetic_armor/mixin/MixinCosmeticArmorVisibility.java
+++ b/src/main/java/io/github/apace100/cosmetic_armor/mixin/MixinCosmeticArmorVisibility.java
@@ -38,7 +38,7 @@ public abstract class MixinCosmeticArmorVisibility<T extends LivingEntity, M ext

        @Shadow protected abstract void setVisible(A bipedModel, EquipmentSlot slot);

-       @Shadow protected abstract boolean usesSecondLayer(EquipmentSlot slot);
+       @Shadow protected abstract boolean usesInnerModel(EquipmentSlot slot);

        @Shadow protected abstract void renderArmorParts(MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, ArmorItem item, boolean usesSecondLayer, A model, boolean legs, float red, float green, float blue, @Nullable String overlay);

@@ -102,7 +102,7 @@ public abstract class MixinCosmeticArmorVisibility<T extends LivingEntity, M ext
                }
                this.getContextModel().setAttributes(model);
                this.setVisible(model, armorSlot);
-               boolean bl = this.usesSecondLayer(armorSlot);
+               boolean bl = this.usesInnerModel(armorSlot);
                boolean bl2 = itemStack.hasGlint();
                if (armorItem instanceof DyeableArmorItem) {
                        int i = ((DyeableArmorItem)armorItem).getColor(itemStack);

from cosmetic-armor.

xDEFCONx avatar xDEFCONx commented on July 26, 2024

Hey there, I've not succeeded in getting this to work on 1.19.2, but I can see that the diff was applied on the 1.19.3 branch.

from cosmetic-armor.

ethanhs avatar ethanhs commented on July 26, 2024

Yeah I basically took the 1.19 branch and made the changes from the 1.19.3 branch needed for it to work on 1.19.2

from cosmetic-armor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.