aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-10-29 22:26:38 +0800
committershedaniel <daniel@shedaniel.me>2022-10-29 22:26:38 +0800
commit8def1ea25b93966d507d24033e6286b8ea008644 (patch)
tree599c72e8403153735f441a7739e16e2355954381
parent0561ca0458d070f4eee12a896d49ab5e00b1ec92 (diff)
downloadRoughlyEnoughItems-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.java12
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;
}
}