Updated Effect constants, removed incorrect/misleading SWIFTNESS constant

So what? I'd rather crash plugins than have them suddenly behave strangely because SWIFTNESS is now an alias for SPEED instead of HASTE.
This commit is contained in:
Dylan K. Taylor
2017-03-21 11:49:18 +00:00
parent 2d927db264
commit c21768df26
2 changed files with 5 additions and 5 deletions

View File

@ -1494,8 +1494,8 @@ class Level implements ChunkManager, Metadatable{
$breakTime = 0.15;
}
if($player->hasEffect(Effect::SWIFTNESS)){
$breakTime *= 1 - (0.2 * ($player->getEffect(Effect::SWIFTNESS)->getAmplifier() + 1));
if($player->hasEffect(Effect::HASTE)){
$breakTime *= 1 - (0.2 * ($player->getEffect(Effect::HASTE)->getAmplifier() + 1));
}
if($player->hasEffect(Effect::MINING_FATIGUE)){