Fix: Don't mistakingly assume that Geyser-Velocity initialized (#4276)

* Fix: ListenerBoundEvent could set `INITIALIZED` to true, even if we did not initialize yet - move that to postStartup() instead.

* only assign INITIALIZED once, and only after the correct listenertype bound.
This commit is contained in:
chris 2023-11-06 16:17:41 +01:00 committed by GitHub
parent 574dad015d
commit 06663bcafd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,9 +206,9 @@ public class GeyserVelocityPlugin implements GeyserBootstrap {
// After this bound, we know that the channel initializer cannot change without it being ineffective for Velocity, too
geyserInjector.initializeLocalChannel(this);
}
}
INITIALIZED = true;
INITIALIZED = true;
}
}
@Override