mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
Add Path finding (#459)
* add initial path finding * Make everything work :D
This commit is contained in:
committed by
GitHub
parent
6a34f6cc6c
commit
e15b2e06ae
@@ -157,6 +157,7 @@ impl Entity {
|
||||
self.yaw.store(yaw);
|
||||
|
||||
// send packet
|
||||
// TODO: do caching, only send packet when needed
|
||||
let yaw = (yaw * 256.0 / 360.0).rem_euclid(256.0);
|
||||
let pitch = (pitch * 256.0 / 360.0).rem_euclid(256.0);
|
||||
self.world
|
||||
|
||||
Reference in New Issue
Block a user