mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-17 17:32:36 +01:00
Set max display of spear master to two decimals (#5258)
* Fixed NPE when party creation doesn't use password. Solves bug reported here: https://discord.com/channels/526933440214597677/526938425161416727/1213131451235827753 Signed-off-by: Momshroom <Momshroom@gmail.com> * Actually don't reduce sapling drop if KnockOnWood unlocked. (Prior fix didn't) Signed-off-by: Momshroom <Momshroom@gmail.com> * removed unnecessary getPlayer() calls. clarified comment clarified location variable name Signed-off-by: Momshroom <Momshroom@gmail.com> * made new method more generic. Removed no longer needed dropString variable Signed-off-by: Momshroom <Momshroom@gmail.com> * Added new potions to alchemy. Borrowed some config info from here: https://discord.com/channels/526933440214597677/547110990278426629/1291771464726478869 Signed-off-by: Momshroom <Momshroom@gmail.com> * Revert regression. Fixes salvage permissions by material type * Format Spear Mastery to 2 decimal places in /spears output, fixing floating point issue causing long output --------- Signed-off-by: Momshroom <Momshroom@gmail.com>
This commit is contained in:
@@ -61,7 +61,7 @@ public class SpearsCommand extends SkillCommand {
|
||||
|
||||
if (canUseSubskill(player, SPEARS_SPEAR_MASTERY)) {
|
||||
messages.add(getStatMessage(SPEARS_SPEAR_MASTERY,
|
||||
String.valueOf(spearMasteryBonusDmg)));
|
||||
String.format("%.2f", spearMasteryBonusDmg)));
|
||||
}
|
||||
|
||||
if (SkillUtils.canUseSubskill(player, SPEARS_MOMENTUM)) {
|
||||
|
||||
Reference in New Issue
Block a user