Skip to content

Commit e21993f

Browse files
committed
Bugfix the getProjectorInDirection off by 1 error
1 parent 2e63d8a commit e21993f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/robotgryphon/compactcrafting/field/FieldProjection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static Optional<FieldProjection> tryCreateFromPosition(IWorldReader world
117117
}
118118

119119
public BlockPos getProjectorInDirection(Direction direction) {
120-
return center.offset(direction, size.getProjectorDistance());
120+
return center.offset(direction, size.getProjectorDistance() + 1);
121121
}
122122

123123
public void clearBlocks(IWorld world) {

0 commit comments

Comments
 (0)