Skip to content

Commit

Permalink
Recess cell model by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Oct 25, 2023
1 parent 9d082b9 commit 361eb3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,21 +367,21 @@ public void renderDynamic(
return;
}

var driveModel = Minecraft.getInstance()
.getModelManager()
.getBlockModelShaper()
.getBlockModel(AEBlocks.DRIVE.block().defaultBlockState());
var cellModel =
BakedModelUnwrapper.unwrap(driveModel, DriveBakedModel.class).getCellChassisModel(clientCell);

poseStack.pushPose();
poseStack.translate(0.5, 0.5, 0.5);

var front = getSide() == Direction.UP || getSide() == Direction.DOWN ? Direction.NORTH : Direction.UP;
var orientation = BlockOrientation.get(front, getSide());

poseStack.mulPose(orientation.getQuaternion());
poseStack.translate(-3.0 / 16, 5.0 / 16, -5.0 / 16);
poseStack.translate(-3F / 16, 5F / 16, -4F / 16);

var driveModel = Minecraft.getInstance()
.getModelManager()
.getBlockModelShaper()
.getBlockModel(AEBlocks.DRIVE.block().defaultBlockState());
var cellModel =
BakedModelUnwrapper.unwrap(driveModel, DriveBakedModel.class).getCellChassisModel(clientCell);

try {
var cellBuffer = buffers.getBuffer(RenderType.cutout());
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 361eb3e

Please sign in to comment.