1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2026-01-06 15:42:03 +00:00

Made combining GlobalLinking with own linking work again

An instance of InjectorHolder was already bound to a child injector at the point that we request to inject GlobalPlayerLinking. This causes Guice to not create a new instance, because it was already bound somewhere in the injector.
This commit is contained in:
Tim203
2021-04-23 23:41:39 +02:00
parent 2e88eaffa4
commit dd092eb279

View File

@@ -175,7 +175,7 @@ public final class PlayerLinkLoader {
// we use our own internal PlayerLinking when global linking is enabled
if (lConfig.isEnableGlobalLinking()) {
GlobalPlayerLinking linking = injector.getInstance(GlobalPlayerLinking.class);
GlobalPlayerLinking linking = linkInjector.getInstance(GlobalPlayerLinking.class);
linking.setDatabaseImpl(instance);
linking.load();
return linking;