don't splice if not on ground
This commit is contained in:
@@ -349,6 +349,9 @@ public class PathExecutor implements IPathExecutor, Helper {
|
|||||||
* Regardless of current path position, snap to the current player feet if possible
|
* Regardless of current path position, snap to the current player feet if possible
|
||||||
*/
|
*/
|
||||||
public boolean snipsnapifpossible() {
|
public boolean snipsnapifpossible() {
|
||||||
|
if (!ctx.player().onGround) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
int index = path.positions().indexOf(ctx.playerFeet());
|
int index = path.positions().indexOf(ctx.playerFeet());
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user