mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-20 15:29:35 +00:00
@@ -155,6 +155,7 @@ public class BotList {
|
|||||||
this.botsByName.put(bot.getScoreboardName().toLowerCase(Locale.ROOT), bot);
|
this.botsByName.put(bot.getScoreboardName().toLowerCase(Locale.ROOT), bot);
|
||||||
this.botsByUUID.put(bot.getUUID(), bot);
|
this.botsByUUID.put(bot.getUUID(), bot);
|
||||||
|
|
||||||
|
bot.supressTrackerForLogin = true;
|
||||||
world.addNewPlayer(bot);
|
world.addNewPlayer(bot);
|
||||||
optional.ifPresent(nbt -> {
|
optional.ifPresent(nbt -> {
|
||||||
bot.loadAndSpawnEnderPearls(nbt);
|
bot.loadAndSpawnEnderPearls(nbt);
|
||||||
@@ -170,6 +171,7 @@ public class BotList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bot.renderAll();
|
bot.renderAll();
|
||||||
|
bot.supressTrackerForLogin = false;
|
||||||
|
|
||||||
bot.level().getChunkSource().chunkMap.addEntity(bot);
|
bot.level().getChunkSource().chunkMap.addEntity(bot);
|
||||||
bot.initInventoryMenu();
|
bot.initInventoryMenu();
|
||||||
|
|||||||
Reference in New Issue
Block a user