diff options
| author | shedaniel <daniel@shedaniel.me> | 2022-10-29 22:26:38 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2022-10-29 22:26:38 +0800 |
| commit | 8def1ea25b93966d507d24033e6286b8ea008644 (patch) | |
| tree | 599c72e8403153735f441a7739e16e2355954381 | |
| parent | 0561ca0458d070f4eee12a896d49ab5e00b1ec92 (diff) | |
| download | RoughlyEnoughItems-8def1ea25b93966d507d24033e6286b8ea008644.tar.gz RoughlyEnoughItems-8def1ea25b93966d507d24033e6286b8ea008644.tar.bz2 RoughlyEnoughItems-8def1ea25b93966d507d24033e6286b8ea008644.zip | |
Properly print plugin names
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/common/plugins/PluginManagerImpl.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/common/plugins/PluginManagerImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/common/plugins/PluginManagerImpl.java index 1264b9abf..c7ab9fcc3 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/common/plugins/PluginManagerImpl.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/common/plugins/PluginManagerImpl.java @@ -140,7 +140,17 @@ public class PluginManagerImpl<P extends REIPlugin<?>> implements PluginManager< } public String getPluginProviderName() { - return provider.getPluginProviderName(); + String providerName = provider.getPluginProviderName(); + + if (provider.provide().size() >= 1) { + String pluginName = plugin.getPluginProviderName(); + + if (!providerName.equals(pluginName)) { + providerName = pluginName + " of " + providerName; + } + } + + return providerName; } } |
