Skip to content

Commit 8bc6519

Browse files
committed
🐛 Fix dice roller paths for books and adventures
1 parent 5ecf9a4 commit 8bc6519

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/dev/ebullient/convert/tools/dnd5e/qute/Tools5eQuteBase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ public static String fixFileName(String name, Tools5eSources sources) {
3535
}
3636

3737
public static String fixFileName(String name, String source, Tools5eIndexType type) {
38-
if (type == Tools5eIndexType.adventureData || type == Tools5eIndexType.bookData) {
38+
if (type == Tools5eIndexType.adventureData
39+
|| type == Tools5eIndexType.adventure
40+
|| type == Tools5eIndexType.book
41+
|| type == Tools5eIndexType.bookData) {
3942
return name; // file name is based on chapter, etc.
4043
}
4144
name = Tui.slugify(name.replaceAll(" \\(\\*\\)", "-gv"));

0 commit comments

Comments
 (0)