mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 11:04:23 +00:00
Add support for injectors in interface mixins
This commit is contained in:
1 parent
f6951762a7
commit
d5fc6623c0
11 files changed
+94
-27
No files matched your search
@@ -50,6 +50,7 @@ public final class SupportedOptions {
|
||||
public static final String PLUGIN_VERSION = "pluginVersion";
|
||||
public static final String QUIET = "quiet";
|
||||
public static final String SHOW_MESSAGE_TYPES = "showMessageTypes";
|
||||
public static final String DISABLE_INTERFACE_MIXINS = "disableInterfaceMixins";
|
||||
|
||||
private SupportedOptions() {}
|
||||
|
||||
@@ -70,7 +71,8 @@ public final class SupportedOptions {
|
||||
SupportedOptions.MAPPING_TYPES,
|
||||
SupportedOptions.PLUGIN_VERSION,
|
||||
SupportedOptions.QUIET,
|
||||
SupportedOptions.SHOW_MESSAGE_TYPES
|
||||
SupportedOptions.SHOW_MESSAGE_TYPES,
|
||||
SupportedOptions.DISABLE_INTERFACE_MIXINS
|
||||
);
|
||||
options.addAll(
|
||||
ObfuscationServices.getInstance().getSupportedOptions()
|
||||
|
||||
@@ -425,6 +425,9 @@ public interface IMessagerEx extends Messager {
|
||||
// Apply the "quiet" option if specified, or if in dev env
|
||||
MessageType.INFO.setEnabled(!(env.isDevelopmentEnvironment() || "true".equalsIgnoreCase(options.getOption(SupportedOptions.QUIET))));
|
||||
|
||||
// Selectively enable injector-in-interface as an error based on user option
|
||||
MessageType.INJECTOR_IN_INTERFACE.setEnabled(options.getOption(SupportedOptions.DISABLE_INTERFACE_MIXINS, false));
|
||||
|
||||
// Legacy option
|
||||
if ("error".equalsIgnoreCase(options.getOption(SupportedOptions.OVERWRITE_ERROR_LEVEL))) {
|
||||
MessageType.OVERWRITE_DOCS.setKind(Kind.ERROR);
|
||||
|
||||
Reference in new issue
Block a user