Skip to content

Commit

Permalink
Fix missed cast
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Dec 7, 2024
1 parent bd95afc commit 7959a45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void render(PoseStack ms, MultiBufferSource buffer, int light, LivingEnti

ModelPart lastChild = partsToHead.get(partsToHead.size() - 1);
if (!lastChild.isEmpty()) {
Cube cube = ((ModelPartAccessor) (Object) lastChild).porting_lib$cubes().get(Mth.clamp(info.cubeIndex(), 0, ((ModelPartAccessor) lastChild).porting_lib$cubes().size() - 1));
Cube cube = ((ModelPartAccessor) (Object) lastChild).porting_lib$cubes().get(Mth.clamp(info.cubeIndex(), 0, ((ModelPartAccessor) (Object) lastChild).porting_lib$cubes().size() - 1));
ms.translate(info.offset().x() / 16.0F, (cube.minY - cube.maxY + info.offset().y()) / 16.0F, info.offset().z() / 16.0F);
float max = Math.max(cube.maxX - cube.minX, cube.maxZ - cube.minZ) / 8.0F * info.scale();
ms.scale(max, max, max);
Expand Down

0 comments on commit 7959a45

Please sign in to comment.