mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-22 04:52:15 +00:00
Ignore some unused warnings in workspaces without TCon
This commit is contained in:
1 parent
928825eb61
commit
f9b4a25a19
1 file changed
+3
@@ -30,6 +30,7 @@ public class ModuleController {
|
||||
*
|
||||
* @param modName The human-readable name of the invoking mod. Used for logger construction.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public ModuleController(String modName) {
|
||||
this.logger = LogManager.getLogger(modName + "-ModuleController");
|
||||
this.config = null;
|
||||
@@ -80,6 +81,7 @@ public class ModuleController {
|
||||
* @param mod The module to attempt to register.
|
||||
* @return True on success, false on error or rejection.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public boolean registerModule(Class<? extends ILoadableModule> mod) {
|
||||
String mID = getModId(mod);
|
||||
if (mID == null) return false;
|
||||
@@ -105,6 +107,7 @@ public class ModuleController {
|
||||
* @param mod The module to attempt to register.
|
||||
* @return True on success, false on error.
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public boolean registerUncheckedModule(Class<? extends ILoadableModule> mod) {
|
||||
String mID = getModId(mod);
|
||||
if (mID == null || !Loader.isModLoaded(mID)) return false;
|
||||
|
||||
Reference in new issue
Block a user