fix: fix a bug in server shutdown with fakeplayer

This commit is contained in:
Helvetica Volubi
2026-06-06 04:48:38 +08:00
parent 09011f05e6
commit a721c27e96
@@ -315,7 +315,7 @@ public class BotList {
}
}
bot.level().getCurrentWorldData().connections.remove(bot.connection.connection);
if (!TickThread.isShutdownThread()) bot.level().getCurrentWorldData().connections.remove(bot.connection.connection);
bot.level().removePlayerImmediately(bot, Entity.RemovalReason.UNLOADED_WITH_PLAYER);
bot.retireScheduler();