mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-10-31 23:59:33 +01:00
Delay version detection when using legacy injector
This commit is contained in:
parent
7c9c602cec
commit
10737f17e2
@ -114,6 +114,9 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform<Player>
|
|||||||
|
|
||||||
getServer().getPluginManager().registerEvent(serverInitEventClass, new Listener() {
|
getServer().getPluginManager().registerEvent(serverInitEventClass, new Listener() {
|
||||||
}, EventPriority.HIGHEST, (listener, event) -> manager.onServerLoaded(), this);
|
}, EventPriority.HIGHEST, (listener, event) -> manager.onServerLoaded(), this);
|
||||||
|
} else if (Via.getManager().getInjector().lateProtocolVersionSetting()) {
|
||||||
|
// Enable after server has loaded at the next tick
|
||||||
|
runSync(manager::onServerLoaded);
|
||||||
} else {
|
} else {
|
||||||
manager.onServerLoaded();
|
manager.onServerLoaded();
|
||||||
}
|
}
|
||||||
|
@ -153,6 +153,11 @@ public class BukkitViaInjector extends LegacyViaInjector {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean lateProtocolVersionSetting() {
|
||||||
|
return !PaperViaInjector.PAPER_PROTOCOL_METHOD;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isBinded() {
|
public boolean isBinded() {
|
||||||
if (PaperViaInjector.PAPER_INJECTION_METHOD) {
|
if (PaperViaInjector.PAPER_INJECTION_METHOD) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user