Fix client-side exceptions
This commit is contained in:
@@ -119,13 +119,13 @@ public class Bot extends EntityPlayer {
|
|||||||
|
|
||||||
bot.setLocation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
|
bot.setLocation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
|
||||||
bot.getBukkitEntity().setNoDamageTicks(0);
|
bot.getBukkitEntity().setNoDamageTicks(0);
|
||||||
|
bot.renderAll();
|
||||||
|
|
||||||
if(mobTargeting)
|
if(mobTargeting)
|
||||||
nmsWorld.addPlayerJoin(bot);
|
nmsWorld.addPlayerJoin(bot);
|
||||||
else
|
else
|
||||||
nmsWorld.addEntity(bot);
|
nmsWorld.addEntity(bot);
|
||||||
|
|
||||||
bot.renderAll();
|
|
||||||
|
|
||||||
TerminatorPlus.getInstance().getManager().add(bot);
|
TerminatorPlus.getInstance().getManager().add(bot);
|
||||||
|
|
||||||
return bot;
|
return bot;
|
||||||
|
|||||||
Reference in New Issue
Block a user