Move all config stuff to config patch

This commit is contained in:
William Blake Galbreath
2021-06-25 20:08:05 -05:00
parent 44e4acda63
commit 4a2d580185
146 changed files with 506 additions and 610 deletions

View File

@@ -70,10 +70,10 @@ index b3928617f732b49cfc124e9bdb879110413defd7..1c6d29a30df66e9971cd50e264bb4455
@Override
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f69fd0b499 100644
index 13cf662db2278b321ad9c66b94a440fe3587cf57..7e6514fb7060f6221924b3bd9eefc75b8797b801 100644
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
@@ -612,6 +612,7 @@ public class PurpurWorldConfig {
@@ -614,6 +614,7 @@ public class PurpurWorldConfig {
public boolean blazeRidableInWater = false;
public double blazeMaxY = 256D;
public double blazeMaxHealth = 20.0D;
@@ -81,7 +81,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
private void blazeSettings() {
blazeRidable = getBoolean("mobs.blaze.ridable", blazeRidable);
blazeRidableInWater = getBoolean("mobs.blaze.ridable-in-water", blazeRidableInWater);
@@ -622,6 +623,7 @@ public class PurpurWorldConfig {
@@ -624,6 +625,7 @@ public class PurpurWorldConfig {
set("mobs.blaze.attributes.max_health", oldValue);
}
blazeMaxHealth = getDouble("mobs.blaze.attributes.max_health", blazeMaxHealth);
@@ -89,7 +89,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
}
public boolean catRidable = false;
@@ -838,6 +840,7 @@ public class PurpurWorldConfig {
@@ -840,6 +842,7 @@ public class PurpurWorldConfig {
public boolean endermanAllowGriefing = true;
public boolean endermanDespawnEvenWithBlock = false;
public boolean endermanBypassMobGriefing = false;
@@ -97,7 +97,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
private void endermanSettings() {
endermanRidable = getBoolean("mobs.enderman.ridable", endermanRidable);
endermanRidableInWater = getBoolean("mobs.enderman.ridable-in-water", endermanRidableInWater);
@@ -850,6 +853,7 @@ public class PurpurWorldConfig {
@@ -852,6 +855,7 @@ public class PurpurWorldConfig {
endermanAllowGriefing = getBoolean("mobs.enderman.allow-griefing", endermanAllowGriefing);
endermanDespawnEvenWithBlock = getBoolean("mobs.enderman.can-despawn-with-held-block", endermanDespawnEvenWithBlock);
endermanBypassMobGriefing = getBoolean("mobs.enderman.bypass-mob-griefing", endermanBypassMobGriefing);
@@ -105,7 +105,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
}
public boolean endermiteRidable = false;
@@ -1535,6 +1539,7 @@ public class PurpurWorldConfig {
@@ -1537,6 +1541,7 @@ public class PurpurWorldConfig {
public float snowGolemSnowBallModifier = 10.0F;
public double snowGolemAttackDistance = 1.25D;
public boolean snowGolemBypassMobGriefing = false;
@@ -113,7 +113,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
private void snowGolemSettings() {
snowGolemRidable = getBoolean("mobs.snow_golem.ridable", snowGolemRidable);
snowGolemRidableInWater = getBoolean("mobs.snow_golem.ridable-in-water", snowGolemRidableInWater);
@@ -1552,6 +1557,7 @@ public class PurpurWorldConfig {
@@ -1554,6 +1559,7 @@ public class PurpurWorldConfig {
snowGolemSnowBallModifier = (float) getDouble("mobs.snow_golem.snow-ball-modifier", snowGolemSnowBallModifier);
snowGolemAttackDistance = getDouble("mobs.snow_golem.attack-distance", snowGolemAttackDistance);
snowGolemBypassMobGriefing = getBoolean("mobs.snow_golem.bypass-mob-griefing", snowGolemBypassMobGriefing);
@@ -121,7 +121,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
}
public boolean squidRidable = false;
@@ -1605,6 +1611,7 @@ public class PurpurWorldConfig {
@@ -1607,6 +1613,7 @@ public class PurpurWorldConfig {
public double striderMaxHealth = 20.0D;
public int striderBreedingTicks = 6000;
public boolean striderGiveSaddleBack = false;
@@ -129,7 +129,7 @@ index 3d4f3ea65836ae44eb91468b43a7cdbf08140b6f..8dae3305170ee554f81b5798ced6f2f6
private void striderSettings() {
striderRidable = getBoolean("mobs.strider.ridable", striderRidable);
striderRidableInWater = getBoolean("mobs.strider.ridable-in-water", striderRidableInWater);
@@ -1616,6 +1623,7 @@ public class PurpurWorldConfig {
@@ -1618,6 +1625,7 @@ public class PurpurWorldConfig {
striderMaxHealth = getDouble("mobs.strider.attributes.max_health", striderMaxHealth);
striderBreedingTicks = getInt("mobs.strider.breeding-delay-ticks", striderBreedingTicks);
striderGiveSaddleBack = getBoolean("mobs.strider.give-saddle-back", striderGiveSaddleBack);