Fix some nano bugs

This commit is contained in:
Sam 2018-09-19 02:08:15 +01:00 committed by Alexander Meech
parent 397bcf709f
commit 83e61ed1cd
4 changed files with 4 additions and 3 deletions

View File

@ -110,7 +110,7 @@ public class GameCycle extends GameManager
cancel();
}
}
}, 10, 10);
}, 40, 10);
}
}

View File

@ -225,7 +225,7 @@ public class Parkour extends SoloGame
continue;
}
if (current + 3 < i)
if (current + 3 < i && parkourPlace.CheckpointIndex < i)
{
getManager().getDamageManager().NewDamageEvent(player, null, null, DamageCause.CUSTOM, 500, false, true, true, getGameType().getName(), "Cheating");
return;

View File

@ -55,6 +55,7 @@ public class ChallengeReverseRunner extends Challenge
if (!inArena(location))
{
failPlayer(player, true);
continue;
}

View File

@ -192,7 +192,7 @@ public class Wizards extends ScoredSoloGame
for (Location spawn : _playersTeam.getSpawns())
{
if (UtilMath.offset2dSquared(spawn, blockLocation) < 9)
if (UtilMath.offsetSquared(spawn, blockLocation) < 9)
{
continue blockLoop;
}