9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-29 03:49:10 +00:00

Fix bot cant get entity tracker (#670)

This commit is contained in:
Lumine1909
2025-08-10 01:55:38 -07:00
committed by GitHub
parent 293273498b
commit 08f53c972b

View File

@@ -155,7 +155,6 @@ public class BotList {
this.botsByName.put(bot.getScoreboardName().toLowerCase(Locale.ROOT), bot);
this.botsByUUID.put(bot.getUUID(), bot);
bot.supressTrackerForLogin = true;
world.addNewPlayer(bot);
optional.ifPresent(nbt -> {
bot.loadAndSpawnEnderPearls(nbt);
@@ -171,7 +170,6 @@ public class BotList {
}
bot.renderAll();
bot.supressTrackerForLogin = false;
bot.level().getChunkSource().chunkMap.addEntity(bot);
bot.initInventoryMenu();