You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2024. It is now read-only.
for (Map.Entry<ModData, JCheckBox> entry : modCheckBoxes.entrySet()) {
272
-
if (entry.getKey().getIncompatibleMods().size() > 0) continue;
272
+
if (!entry.getKey().getReadme().isEmpty() || entry.getKey().getIncompatibleMods().size() > 0) continue;
273
273
274
274
if (entry.getValue().isEnabled() && entry.getKey().getWarningMessage().isEmpty()) {
275
275
entry.getValue().setSelected(true);
@@ -389,10 +389,25 @@ public void updateModList() {
389
389
if (isSelected && !modData.getWarningMessage().isEmpty()) {
390
390
JOptionPane.showMessageDialog(this, "<html><body>" + modData.getWarningMessage() + "<br>If you ignore this warning, your run being may get rejected.</body></html>", "WARNING!", JOptionPane.WARNING_MESSAGE);
391
391
}
392
+
393
+
if (isSelected && !modData.getReadme().isEmpty()) {
394
+
Object[] options = { "Check Readme", "I know!", "Cancel" };
395
+
intresult = JOptionPane.showOptionDialog(this, "If you are using this mod for the first time, please read the README.", "WARNING!", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);
0 commit comments