Skip to content

Commit

Permalink
Fix some PoseStack issues on Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlikePaladin committed Nov 10, 2023
1 parent 564b74b commit 576b23c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void render(ItemStack stack, ModelTransformation.Mode mode, MatrixStack m
boolean glint = stack.hasGlint();

ItemRenderer renderer = MinecraftClient.getInstance().getItemRenderer();
matrices.pop();
matrices.push();
BakedModel lampShadeModel = (bakedModels.get(variant).get(modelParts.get(4))).handlePerspective(mode, matrices);
BakedModel poleModel = (bakedModels.get(variant).get(modelParts.get(2)));
Expand All @@ -65,6 +64,7 @@ public void render(ItemStack stack, ModelTransformation.Mode mode, MatrixStack m
renderer.renderBakedItemModel(lampShadeModel, stack, light, overlay, matrices, consumer);
renderer.renderBakedItemModel(poleModel, stack, light, overlay, matrices, consumer);
renderer.renderBakedItemModel(bulbModel, stack, light, overlay, matrices, consumer);
matrices.pop();
}
}
}

0 comments on commit 576b23c

Please sign in to comment.