Don't sleep near monsters

This commit is contained in:
2020-12-12 21:11:00 +00:00
parent 86846a5c02
commit af88f68e66
3 changed files with 11 additions and 4 deletions

2
bot.py
View File

@@ -173,7 +173,7 @@ def tick(global_state):
g.pitch += utils.cap(target_pitch_d, 10)
packet = serverbound.play.PositionAndLookPacket(x=p.x, feet_y=p.y, z=p.z, pitch=g.pitch, yaw=g.yaw, on_ground=(not in_air))
g.connection.write_packet(packet, force=True)
g.connection.write_packet(packet)
g.game.tick()
g.job.tick()