kourendlibrary: add config to hide dark manuscripts
This commit is contained in:
@@ -63,6 +63,16 @@ public interface KourendLibraryConfig extends Config
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
keyName = "hideDarkManuscript",
|
||||||
|
name = "Hide Dark Manuscript",
|
||||||
|
description = "Whether to hide Dark Manuscripts"
|
||||||
|
)
|
||||||
|
default boolean hideDarkManuscript()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
keyName = "showTutorialOverlay",
|
keyName = "showTutorialOverlay",
|
||||||
name = "Show tutorial overlay",
|
name = "Show tutorial overlay",
|
||||||
|
|||||||
@@ -127,7 +127,8 @@ class KourendLibraryOverlay extends Overlay
|
|||||||
bookIsKnown = true;
|
bookIsKnown = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (book == Book.VARLAMORE_ENVOY && config.hideVarlamoreEnvoy())
|
if ((book == Book.VARLAMORE_ENVOY && config.hideVarlamoreEnvoy())
|
||||||
|
|| (book != null && book.isDarkManuscript() && config.hideDarkManuscript()))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user