Skip to content

Commit

Permalink
Fix 1.18 build
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Aug 30, 2023
1 parent eb8fd0a commit 3432ba4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ public static void dumpModelPartQuads(ModelPart modelPart, PoseStack poseStack,
if (!((ModelPartAccessor)(Object)modelPart).getCubes().isEmpty() || !((ModelPartAccessor)(Object)modelPart).getChildren().isEmpty()) {
poseStack.pushPose();
modelPart.translateAndRotate(poseStack);
if (!modelPart.skipDraw) {
for (ModelPart.Cube cube : ((ModelPartAccessor)(Object)modelPart).getCubes()) {
cube.compile(poseStack.last(), vertexConsumer, packedLight,packedOverlay, 1, 1, 1, 1);
}
for (ModelPart.Cube cube : ((ModelPartAccessor)(Object)modelPart).getCubes()) {
cube.compile(poseStack.last(), vertexConsumer, packedLight,packedOverlay, 1, 1, 1, 1);
}
for (ModelPart child : ((ModelPartAccessor)(Object)modelPart).getChildren().values()) {
dumpModelPartQuads(child, poseStack, vertexConsumer, packedLight, packedOverlay);
Expand Down

0 comments on commit 3432ba4

Please sign in to comment.