Skip to content

Commit 6422764

Browse files
committed
fixed #1120
1 parent 0f15c08 commit 6422764

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/ferreusveritas/dynamictrees/util/CoordUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public static BlockHitResult branchRayTrace(LevelAccessor level, Species species
174174
final BlockPos vantagePos = BlockPos.containing(vantageVec); // Convert Vector to BlockPos for testing.
175175

176176
if (!safeBounds.inBounds(vantagePos, false) || level.isEmptyBlock(vantagePos)) { // The observing block must be in free space.
177-
final BlockHitResult result = rayTraceBlocks(level, new CustomRayTraceContext(vantageVec, branchVec, ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE), safeBounds);
177+
final BlockHitResult result = rayTraceBlocks(level, new CustomRayTraceContext(vantageVec, branchVec, ClipContext.Block.OUTLINE, ClipContext.Fluid.NONE), safeBounds);
178178
// Beyond here should be safe since the only blocks that can possibly be hit are in loaded chunks.
179179
final BlockPos hitPos = BlockPos.containing(result.getLocation());
180180
if (result.getType() == HitResult.Type.BLOCK && !hitPos.equals(BlockPos.ZERO)) { // We found a block.

0 commit comments

Comments
 (0)