From 2ea7d7e86f494648f9980f47868a964547fe4eeb Mon Sep 17 00:00:00 2001 From: Wendall Cada Date: Fri, 25 May 2018 15:00:30 -0700 Subject: [PATCH] Use double for heal rate in config. --- src/main/java/tinkersurvival/config/Config.java | 2 +- src/main/java/tinkersurvival/world/potion/StopBleeding.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/tinkersurvival/config/Config.java b/src/main/java/tinkersurvival/config/Config.java index c6a9173..584cee4 100644 --- a/src/main/java/tinkersurvival/config/Config.java +++ b/src/main/java/tinkersurvival/config/Config.java @@ -25,7 +25,7 @@ public static class Balance { public static double GRASS_FIBER_CHANCE = 0.5D; @Comment("Heal rate for bandages. Crude bandages are 50% less effective.") - public static float HEAL_RATE = 0.14f; + public static double HEAL_RATE = 0.14D; } public static Features features; diff --git a/src/main/java/tinkersurvival/world/potion/StopBleeding.java b/src/main/java/tinkersurvival/world/potion/StopBleeding.java index 6df7440..8681ff0 100644 --- a/src/main/java/tinkersurvival/world/potion/StopBleeding.java +++ b/src/main/java/tinkersurvival/world/potion/StopBleeding.java @@ -10,7 +10,7 @@ public class StopBleeding extends PotionBase { - static final float HEAL_RATE = Config.Balance.HEAL_RATE; + static final float HEAL_RATE = (float)Config.Balance.HEAL_RATE; public StopBleeding() { super("stopbleeding", false, 0xf7b7ad);