mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-21 06:41:43 +01:00
fix: do not check instance if player was kicked during config state
This commit is contained in:
parent
7ec3e3021e
commit
c9a4b4b9c1
@ -267,6 +267,7 @@ public final class ConnectionManager {
|
|||||||
|
|
||||||
var event = new AsyncPlayerConfigurationEvent(player, isFirstConfig);
|
var event = new AsyncPlayerConfigurationEvent(player, isFirstConfig);
|
||||||
EventDispatcher.call(event);
|
EventDispatcher.call(event);
|
||||||
|
if (!player.isOnline()) return; // Player was kicked during config.
|
||||||
|
|
||||||
final Instance spawningInstance = event.getSpawningInstance();
|
final Instance spawningInstance = event.getSpawningInstance();
|
||||||
Check.notNull(spawningInstance, "You need to specify a spawning instance in the AsyncPlayerConfigurationEvent");
|
Check.notNull(spawningInstance, "You need to specify a spawning instance in the AsyncPlayerConfigurationEvent");
|
||||||
|
Loading…
Reference in New Issue
Block a user