Fix client-side exceptions

This commit is contained in:
ThisTestUser
2021-08-25 14:26:22 -04:00
parent 0ea15caacd
commit 0a2c1e7e88

View File

@@ -119,13 +119,13 @@ public class Bot extends EntityPlayer {
bot.setLocation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
bot.getBukkitEntity().setNoDamageTicks(0);
bot.renderAll();
if(mobTargeting)
nmsWorld.addPlayerJoin(bot);
else
nmsWorld.addEntity(bot);
bot.renderAll();
TerminatorPlus.getInstance().getManager().add(bot);
return bot;