mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 17:23:42 +01:00 
			
		
		
		
	burnTimeModifier only needs show two decimal places
This commit is contained in:
		| @@ -26,6 +26,7 @@ public abstract class SkillCommand implements CommandExecutor { | |||||||
|     protected boolean hasEndurance; |     protected boolean hasEndurance; | ||||||
|  |  | ||||||
|     protected DecimalFormat percent = new DecimalFormat("##0.00%"); |     protected DecimalFormat percent = new DecimalFormat("##0.00%"); | ||||||
|  |     protected DecimalFormat decimal = new DecimalFormat("##0.00"); | ||||||
|  |  | ||||||
|     public SkillCommand(SkillType skill) { |     public SkillCommand(SkillType skill) { | ||||||
|         this.skill = skill; |         this.skill = skill; | ||||||
|   | |||||||
| @@ -25,7 +25,7 @@ public class SmeltingCommand extends SkillCommand { | |||||||
|     @Override |     @Override | ||||||
|     protected void dataCalculations() { |     protected void dataCalculations() { | ||||||
|         //FUEL EFFICIENCY |         //FUEL EFFICIENCY | ||||||
|         burnTimeModifier = String.valueOf(1 + ((skillValue / Smelting.burnModifierMaxLevel) * Smelting.burnTimeMultiplier)); |         burnTimeModifier = decimal.format(1 + ((skillValue / Smelting.burnModifierMaxLevel) * Smelting.burnTimeMultiplier)); | ||||||
|  |  | ||||||
|         //SECOND SMELT |         //SECOND SMELT | ||||||
|         String[] secondSmeltStrings = calculateAbilityDisplayValues(Smelting.secondSmeltMaxLevel, Smelting.secondSmeltMaxChance); |         String[] secondSmeltStrings = calculateAbilityDisplayValues(Smelting.secondSmeltMaxLevel, Smelting.secondSmeltMaxChance); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TfT_02
					TfT_02