SpawnLoc changes

+NoFall check
This commit is contained in:
ThisTestUser
2022-12-15 17:10:15 -05:00
parent a41d9245b2
commit 58f39c1d39
4 changed files with 19 additions and 1 deletions

View File

@@ -112,6 +112,8 @@ public interface Terminator {
void addVelocity(Vector velocity);
int getAliveTicks();
int getNoFallTicks();
boolean tickDelay(int ticks);

View File

@@ -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;