Added option to allow refreshing of chunks after block-breaking abilities.

This, if enabled, should fix the problem of clients believing they have broken more blocks than they really have when the enchanced enchantment is removed.
If testing proves it to be useful, could be enabled by default.  This currently send a 3x3 set of chunks centered around the player, so some servers may wish to disable it in that case.
This commit is contained in:
NuclearW
2013-03-29 18:29:31 -04:00
parent 80a5c2f9c4
commit 7f4efe1775
5 changed files with 22 additions and 1 deletions

View File

@ -187,6 +187,10 @@ public class SkillUtils {
handleAbilitySpeedDecrease(player);
}
if (HiddenConfig.getInstance().resendChunksAfterBlockAbility() && (ability == AbilityType.BERSERK || ability == AbilityType.SUPER_BREAKER || ability == AbilityType.GIGA_DRILL_BREAKER)) {
Misc.resendChunkRadiusAt(player, 1);
}
mcMMOPlayer.setAbilityMode(ability, false);
mcMMOPlayer.setAbilityInformed(ability, false);