Skip to content

Commit bff19ad

Browse files
committed
Fixed trees not generating
1 parent 24190a1 commit bff19ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/ferreusveritas/dynamictrees/resources/Resources.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ private static void registerModTreePacks() {
120120

121121

122122
private static void addModResourcePack(IModInfo modInfo) {
123-
123+
final IModFile modFile = modInfo.getOwningFile().getFile();
124+
if (modFile.getProvider().isValid(modFile)) {
125+
addModResourcePack(modFile);
126+
}
124127
}
125128

126129
private static void addModResourcePack(IModFile modFile) {

0 commit comments

Comments
 (0)