Fixed IntegrationRegistry#executeSafely

This commit is contained in:
Auxilor
2023-04-25 10:28:23 +01:00
parent 0805b48763
commit 7ccee60a0c

View File

@@ -114,7 +114,7 @@ public class IntegrationRegistry<T extends Integration> extends Registry<T> {
Eco.get().getEcoPlugin().getLogger().warning("Integration for " + integration.getPluginName() + " threw an exception!");
Eco.get().getEcoPlugin().getLogger().warning("The integration will be disabled.");
e.printStackTrace();
this.remove(integration.getPluginName());
this.remove(integration);
return defaultValue;
}
}