Updated jumping logic so bots can jump over blocks.
Updated patch version +1.
This commit is contained in:
@@ -450,7 +450,9 @@ public class Bot extends ServerPlayer implements Terminator {
|
|||||||
y = 0;
|
y = 0;
|
||||||
} else {
|
} else {
|
||||||
y = velocity.getY();
|
y = velocity.getY();
|
||||||
velocity.setY(Math.max(y - 0.1, -3.5));
|
if(jumpTicks - 3 <= 0) {
|
||||||
|
velocity.setY(Math.max(y - 0.08, -3.5));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -484,7 +486,7 @@ public class Bot extends ServerPlayer implements Terminator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void jump() {
|
public void jump() {
|
||||||
jump(new Vector(0, 0.5, 0));
|
jump(new Vector(0, 0.42, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "net.nuggetmc"
|
group = "net.nuggetmc"
|
||||||
version = "4.5.0-BETA"
|
version = "4.5.1-BETA"
|
||||||
|
|||||||
Reference in New Issue
Block a user