Skip to content

Commit

Permalink
Fixed issue #1009.
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsschmidt1337 committed Dec 10, 2023
1 parent 0cb5469 commit b7cd678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion primitive_rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Peg Hole End; Title "peghole.dat"; Matches ".*Peg.*Hole.*End.*"
Technic Bush; Title "bush.dat"; Matches ".*Technic.*Bush.*"
Technic Beam Hole; Title "beamhol2.dat"; Matches ".*Technic.*Beam.*Hole.*"

Studs; Title "stud.dat"; Contains "Stud"; AND NOT Matches ".*Stud.*Group.*"
Studs; Title "stud.dat"; Contains "Stud"; AND NOT Matches ".*Stud.*Group.*"; AND NOT Contains "Tile"
Stud Groups; Title "stug-2x2.dat"; Matches ".*Stud.*Group.*"

Znap; Title "znap5.dat"; Matches ".*Znap.*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1233,13 +1233,12 @@ private File[] listFiles(String ldrawPath, File libFolder) {

final String[] standardBricks = (
"""
3001.dat,3002.dat,
3005.dat,
3024.dat,
3070b.dat""").split(",");//$NON-NLS-1$ //$NON-NLS-2$
3001,3002,3003,3005,3004,3622,3010,3009,2356,2456,
3024,3023b,3623,3710,78329,3666,3022,3021,3020,3795,11212,3031,3032,3958,
3070b,3069b,63864,2431,6636,3068b,26603,87079,69729,6934,10202""").split(",");//$NON-NLS-1$ //$NON-NLS-2$
final File[] result = new File[standardBricks.length];
for (int i = 0; i < result.length; i++) {
result[i] = new File(ldrawPath + File.separator + partsFolder + File.separator + standardBricks[i].trim());
result[i] = new File(ldrawPath + File.separator + partsFolder + File.separator + standardBricks[i].trim() + ".dat"); //$NON-NLS-1$
}

return result;
Expand Down

0 comments on commit b7cd678

Please sign in to comment.