Add String#strip to AddonRegistry to remove trialing newline

This commit is contained in:
solo
2021-09-27 10:57:06 -04:00
committed by GitHub
parent 764f93f40f
commit e3df44e16f

View File

@@ -114,7 +114,7 @@ public class AddonRegistry extends OpenRegistryImpl<TerraAddon> {
Duplicate addon ID; addon with ID {} is already loaded.
Existing addon class: {}
Duplicate addon class: {}
""",
""".strip(),
loadedAddon.getName(),
get(loadedAddon.getName()).getClass().getCanonicalName(),
addonClass.getCanonicalName());