don't splice if not on ground
This commit is contained in:
parent
07ce0a47f7
commit
57a3330200
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user