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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user