mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
fix(mobs/bee): Set takes-damage-from-water back to false by default, closes #1639
Also migrates the value to false for old configs. Users who previously set this to true will need to re-enable it.
This commit is contained in:
@@ -74,8 +74,8 @@ public class PurpurConfig {
|
||||
commands = new HashMap<>();
|
||||
commands.put("purpur", new PurpurCommand("purpur"));
|
||||
|
||||
version = getInt("config-version", 39);
|
||||
set("config-version", 39);
|
||||
version = getInt("config-version", 40);
|
||||
set("config-version", 40);
|
||||
|
||||
readConfig(PurpurConfig.class, null);
|
||||
|
||||
|
||||
@@ -1229,7 +1229,7 @@ public class PurpurWorldConfig {
|
||||
public double beeMaxHealth = 10.0D;
|
||||
public double beeScale = 1.0D;
|
||||
public int beeBreedingTicks = 6000;
|
||||
public boolean beeTakeDamageFromWater = true;
|
||||
public boolean beeTakeDamageFromWater = false;
|
||||
public boolean beeCanWorkAtNight = false;
|
||||
public boolean beeCanWorkInRain = false;
|
||||
public boolean beeAlwaysDropExp = false;
|
||||
@@ -1247,6 +1247,9 @@ public class PurpurWorldConfig {
|
||||
beeMaxHealth = getDouble("mobs.bee.attributes.max_health", beeMaxHealth);
|
||||
beeScale = Mth.clamp(getDouble("mobs.bee.attributes.scale", beeScale), 0.0625D, 16.0D);
|
||||
beeBreedingTicks = getInt("mobs.bee.breeding-delay-ticks", beeBreedingTicks);
|
||||
if (PurpurConfig.version < 40) {
|
||||
set("mobs.bee.takes-damage-from-water", false);
|
||||
}
|
||||
beeTakeDamageFromWater = getBoolean("mobs.bee.takes-damage-from-water", beeTakeDamageFromWater);
|
||||
beeCanWorkAtNight = getBoolean("mobs.bee.can-work-at-night", beeCanWorkAtNight);
|
||||
beeCanWorkInRain = getBoolean("mobs.bee.can-work-in-rain", beeCanWorkInRain);
|
||||
|
||||
Reference in New Issue
Block a user