don't splice if not on ground

This commit is contained in:
Leijurv 2018-12-01 10:49:14 -08:00
parent 07ce0a47f7
commit 57a3330200
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ public class PathExecutor implements IPathExecutor, Helper {
* Regardless of current path position, snap to the current player feet if possible
*/
public boolean snipsnapifpossible() {
if (!ctx.player().onGround) {
return false;
}
int index = path.positions().indexOf(ctx.playerFeet());
if (index == -1) {
return false;