From e28f95ba2d5eedb92d2aace0bd75ac58dc7ed019 Mon Sep 17 00:00:00 2001 From: Abdel Date: Sat, 7 Sep 2024 22:16:01 +0200 Subject: [PATCH] fix laser again ? --- .../renderer/blockentities/LaserBlockEntityRenderer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/portingdeadmods/modjam/api/client/renderer/blockentities/LaserBlockEntityRenderer.java b/src/main/java/com/portingdeadmods/modjam/api/client/renderer/blockentities/LaserBlockEntityRenderer.java index 343cd2aa..434ae8ae 100644 --- a/src/main/java/com/portingdeadmods/modjam/api/client/renderer/blockentities/LaserBlockEntityRenderer.java +++ b/src/main/java/com/portingdeadmods/modjam/api/client/renderer/blockentities/LaserBlockEntityRenderer.java @@ -25,7 +25,7 @@ public void render(T blockEntity, float partialTick, PoseStack poseStack, MultiB Object2IntMap laserDistances = blockEntity.getLaserDistances(); for (Direction direction : blockEntity.getLaserOutputs()) { int laserDistance = laserDistances.getOrDefault(direction, 0); - BlockPos targetPos = originPos.relative(direction, laserDistance-2); + BlockPos targetPos = originPos.relative(direction, laserDistance-1); if(laserDistance != 0){ LaserRendererHelper.renderOuterBeam(blockEntity, originPos, targetPos, direction, poseStack, bufferSource, partialTick); } @@ -43,7 +43,7 @@ public void render(T blockEntity, float partialTick, PoseStack poseStack, MultiB } if(laserDistance != 0){ LaserRendererHelper.renderInnerBeam(poseStack, bufferSource, partialTick, blockEntity.getLevel().getGameTime(), - 0, laserDistance-1, FastColor.ARGB32.color(202, 214, 224)); + 0, laserDistance, FastColor.ARGB32.color(202, 214, 224)); } } poseStack.popPose();