Add toString to ModSettings and RemapConfigurationSettings (#831)

This helps a bit with debugging code that uses them as you don't
have to open the object to see which mod/remap configuration we're
investigating.
This commit is contained in:
Juuz
2023-02-18 20:53:49 +02:00
committed by modmuss50
parent 97f594da8e
commit b19184751b
2 changed files with 10 additions and 0 deletions

View File

@@ -122,4 +122,9 @@ public abstract class ModSettings implements Named {
@Inject
public abstract Project getProject();
@Override
public String toString() {
return "ModSettings '" + getName() + "'";
}
}

View File

@@ -142,4 +142,9 @@ public abstract class RemapConfigurationSettings implements Named {
private Provider<Boolean> defaultDependencyTransforms() {
return getSourceSet().map(sourceSet -> sourceSet.getName().equals(SourceSet.MAIN_SOURCE_SET_NAME) || sourceSet.getName().equals("client"));
}
@Override
public String toString() {
return "RemapConfigurationSettings '" + getName() + "'";
}
}