We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9154ae commit 9ad11d2Copy full SHA for 9ad11d2
src/main/java/dev/su5ed/sinytra/connector/loader/ConnectorLoaderModMetadata.java
@@ -123,8 +123,12 @@ public String getType() {
123
@Override
124
public Collection<String> getProvides() {
125
Set<String> provides = new HashSet<>(this.wrapped.getProvides());
126
+ String normalized = getId();
127
+ // Remove normalized modid from provided ids to prevent duplicates
128
+ provides.remove(normalized);
129
+ // If we modified the modid, provide the original
130
String original = this.wrapped.getId();
- if (!getId().equals(original)) {
131
+ if (!normalized.equals(original)) {
132
// Add original modid to mod lookup
133
provides.add(original);
134
}
0 commit comments