Skip to content

Commit

Permalink
Fix Mekanism Particles rendering in wrong position sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Aug 15, 2024
1 parent b89f5a1 commit 81476f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ public void drawParticlesClient(ParticleRenderDataChemical partData) {

if (targetState.getBlock() instanceof LaserNode) {
targetState = level.getBlockState(fromPos);
VoxelShape voxelShape = targetState.getShape(level, toPos);
VoxelShape voxelShape = targetState.getShape(level, fromPos);
Vector3f extractOffset = findOffset(direction, partData.position, offsets);
Vector3f insertOffset = CardRender.shapeOffset(extractOffset, voxelShape, fromPos, toPos, direction, level, targetState);
ChemicalFlowParticleData data = new ChemicalFlowParticleData(chemicalStack, toPos.getX() + extractOffset.x(), toPos.getY() + extractOffset.y(), toPos.getZ() + extractOffset.z(), 10);
Expand Down

0 comments on commit 81476f1

Please sign in to comment.