bugfix: remove DirectoryFileSource requirment for gameplay templates
@@ -186,12 +186,10 @@ private void setGameName(UIText gameName) {
List<Module> gameplayModules = Lists.newArrayList();
for (Name moduleId : moduleManager.getRegistry().getModuleIds()) {
Module latestVersion = moduleManager.getRegistry().getLatestModuleVersion(moduleId);
- if (!(latestVersion.getResources() instanceof DirectoryFileSource)) {
if (StandardModuleExtension.isGameplayModule(latestVersion)) {
gameplayModules.add(latestVersion);
}
}
- }
gameplayModules.sort(Comparator.comparing(o -> o.getMetadata().getDisplayName().value()));
return gameplayModules;
