SpawnLoc changes
+NoFall check
This commit is contained in:
@@ -112,6 +112,8 @@ public interface Terminator {
|
||||
void addVelocity(Vector velocity);
|
||||
|
||||
int getAliveTicks();
|
||||
|
||||
int getNoFallTicks();
|
||||
|
||||
boolean tickDelay(int ticks);
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ public class LegacyBlockCheck {
|
||||
}
|
||||
|
||||
public boolean tryPreMLG(Terminator bot, Location botLoc) {
|
||||
if(bot.isBotOnGround() || bot.getVelocity().getY() >= -0.8D)
|
||||
if(bot.isBotOnGround() || bot.getVelocity().getY() >= -0.8D || bot.getNoFallTicks() > 7)
|
||||
return false;
|
||||
if (tryPreMLG(bot, botLoc, 3))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user