mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 21:05:58 -05:00
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:
@@ -122,4 +122,9 @@ public abstract class ModSettings implements Named {
|
||||
|
||||
@Inject
|
||||
public abstract Project getProject();
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ModSettings '" + getName() + "'";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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() + "'";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user