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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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());