mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 00:55:37 +00:00
Aggressively resolve soft targets containing '$' and other minor fixes
Fixes #390
This commit is contained in:
1 parent
4585277f9f
commit
b5299bfebc
5 files changed
+82
-15
No files matched your search
@@ -225,6 +225,10 @@ class AnnotatedMixin {
|
||||
} else if (type == null) {
|
||||
this.printMessage(Kind.ERROR, "Mixin target " + softTarget + " could not be found", this);
|
||||
return null;
|
||||
} else if (type.isImaginary()) {
|
||||
this.printMessage(Kind.WARNING, "Mixin target " + softTarget + " could not be fully resolved.", this,
|
||||
SuppressedBy.UNRESOLVABLE_TARGET);
|
||||
return null;
|
||||
} else if (type.isPublic()) {
|
||||
SuppressedBy suppressedBy = (type.getPackage().isUnnamed()) ? SuppressedBy.DEFAULT_PACKAGE : SuppressedBy.PUBLIC_TARGET;
|
||||
this.printMessage(Kind.WARNING, "Mixin target " + softTarget + " is public and must be specified in value", this, suppressedBy);
|
||||
|
||||
Reference in new issue
Block a user