Skip to content

Commit

Permalink
Clear the inject before setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Oct 30, 2024
1 parent af6ea24 commit 7b0f2e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ private void renderHandStart(PoseStack poseStack, MultiBufferSource multiBufferS
// spotless:on
PlayerSettings settings = (PlayerSettings) abstractClientPlayer;
boolean slim = ((PlayerEntityModelAccessor) getModel()).hasThinArms();
((ModelPartInjector) (Object) sleeve).setInjectedMesh(null, null);
if (!SkinUtil.setup3dLayers(abstractClientPlayer, settings, slim)) {
// fall back to vanilla
return;
}
((ModelPartInjector) (Object) sleeve).setInjectedMesh(null, null);
if (arm == getModel().leftSleeve) {
if (SkinLayersModBase.config.enableLeftSleeve) {
((ModelPartInjector) (Object) sleeve).setInjectedMesh(settings.getLeftArmMesh(),
Expand Down

0 comments on commit 7b0f2e0

Please sign in to comment.