1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-20 16:01:26 +02:00

Fixed "lower tool" messages still being displayed even when ability

messages are disabled.
This commit is contained in:
GJ 2012-07-03 08:40:56 -04:00
parent 9f1b77a007
commit 96e70aa4d2
2 changed files with 5 additions and 1 deletions
Changelog.txt
src/main/java/com/gmail/nossr50/util

@ -24,6 +24,7 @@ Version 1.3.10-dev
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
= Fixed ArrayIndexOutOfBounds error caused when trying to use /xplock after logging in but before gaining XP
= Fixed custom tools not properly respecting the Ability_Enabled flag.
= Fixed "lower tool" messages still being displayed even when ability messages are disabled.
! Optimized how player placed blocks are tracked
Version 1.3.09

@ -152,8 +152,11 @@ public class Skills {
if (PP.getToolPreparationMode(tool) && curTime - (PP.getToolPreparationATS(tool) * TIME_CONVERSION_FACTOR) >= FOUR_SECONDS) {
PP.setToolPreparationMode(tool, false);
if (Config.getInstance().getAbilityMessagesEnabled()) {
player.sendMessage(tool.getLowerTool());
}
}
if (ability.getPermissions(player)) {
if (PP.getAbilityMode(ability) && (PP.getSkillDATS(ability) * TIME_CONVERSION_FACTOR) <= curTime) {