Register listeners a tick later

Because 1.8 has task registration order reverse???
Fixes #730
This commit is contained in:
Nassim Jahnke 2024-04-28 11:35:51 +02:00
parent 06c30c2838
commit ddeaf921be
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -38,7 +38,7 @@ public class BukkitPlugin extends JavaPlugin implements ViaBackwardsPlatform {
public void onEnable() {
if (Via.getManager().getInjector().lateProtocolVersionSetting()) {
// Enable in the next tick
Via.getPlatform().runSync(this::enable);
Via.getPlatform().runSync(this::enable, 1);
} else {
enable();
}