diff --git a/gradle.properties b/gradle.properties index 312164bb..83391464 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,9 +3,9 @@ org.gradle.daemon=false # Fabric Properties # check these on https://fabricmc.net/develop - minecraft_version=1.19.4 - yarn_mappings=1.19.4+build.1 - loader_version=0.14.17 + minecraft_version=23w13a_or_b + yarn_mappings=23w13a_or_b+build.1 + loader_version=0.14.19 fabric_version=0.76.0+1.19.4 # Mod Properties diff --git a/src/main/java/com/minelittlepony/client/render/entity/feature/ArmourFeature.java b/src/main/java/com/minelittlepony/client/render/entity/feature/ArmourFeature.java index b5cceace..a5806881 100644 --- a/src/main/java/com/minelittlepony/client/render/entity/feature/ArmourFeature.java +++ b/src/main/java/com/minelittlepony/client/render/entity/feature/ArmourFeature.java @@ -19,7 +19,6 @@ import net.minecraft.entity.EquipmentSlot; import net.minecraft.entity.LivingEntity; import net.minecraft.item.*; import net.minecraft.item.trim.ArmorTrim; -import net.minecraft.resource.featuretoggle.FeatureFlags; import net.minecraft.util.Identifier; public class ArmourFeature & IPonyModel> extends AbstractPonyFeature { @@ -85,16 +84,14 @@ public class ArmourFeature & IP }); } - if (entity.world.getEnabledFeatures().contains(FeatureFlags.UPDATE_1_20)) { - if (stack.getItem() instanceof ArmorItem armor) { - ArmorTrim.getTrim(entity.world.getRegistryManager(), stack).ifPresent(trim -> { - pony.getArmourModel(stack, layer, ArmourVariant.TRIM) - .filter(m -> m.poseModel(entity, limbAngle, limbDistance, age, headYaw, headPitch, armorSlot, layer, pony.body())) - .ifPresent(m -> { - m.render(matrices, getTrimConsumer(renderContext, armor.getMaterial(), trim, layer, glint), light, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1); - }); + if (stack.getItem() instanceof ArmorItem armor) { + ArmorTrim.getTrim(entity.world.getRegistryManager(), stack).ifPresent(trim -> { + pony.getArmourModel(stack, layer, ArmourVariant.TRIM) + .filter(m -> m.poseModel(entity, limbAngle, limbDistance, age, headYaw, headPitch, armorSlot, layer, pony.body())) + .ifPresent(m -> { + m.render(matrices, getTrimConsumer(renderContext, armor.getMaterial(), trim, layer, glint), light, OverlayTexture.DEFAULT_UV, 1, 1, 1, 1); }); - } + }); } }); }