mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 10:27:44 +01:00
stop mobs from targeting afk players (#564)
Co-authored-by: Encode42 <me@encode42.dev>
This commit is contained in:
@@ -70,10 +70,10 @@ index 66dab9b4e5ae05deeae11c8588a0b855d8847bdc..19753a1855b11f8cdc9fb77e8d9079bb
|
||||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d3a009804 100644
|
||||
index b578c89ed02b093e329ba93775a3552e5a568883..8e3d7bb364f9581dd27145672c87c3933b09b8af 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -632,6 +632,7 @@ public class PurpurWorldConfig {
|
||||
@@ -634,6 +634,7 @@ public class PurpurWorldConfig {
|
||||
public boolean blazeRidableInWater = false;
|
||||
public double blazeMaxY = 256D;
|
||||
public double blazeMaxHealth = 20.0D;
|
||||
@@ -81,7 +81,7 @@ index d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
private void blazeSettings() {
|
||||
blazeRidable = getBoolean("mobs.blaze.ridable", blazeRidable);
|
||||
blazeRidableInWater = getBoolean("mobs.blaze.ridable-in-water", blazeRidableInWater);
|
||||
@@ -642,6 +643,7 @@ public class PurpurWorldConfig {
|
||||
@@ -644,6 +645,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.blaze.attributes.max_health", oldValue);
|
||||
}
|
||||
blazeMaxHealth = getDouble("mobs.blaze.attributes.max_health", blazeMaxHealth);
|
||||
@@ -89,7 +89,7 @@ index d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
}
|
||||
|
||||
public boolean catRidable = false;
|
||||
@@ -858,6 +860,7 @@ public class PurpurWorldConfig {
|
||||
@@ -860,6 +862,7 @@ public class PurpurWorldConfig {
|
||||
public boolean endermanAllowGriefing = true;
|
||||
public boolean endermanDespawnEvenWithBlock = false;
|
||||
public boolean endermanBypassMobGriefing = false;
|
||||
@@ -97,7 +97,7 @@ index d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
private void endermanSettings() {
|
||||
endermanRidable = getBoolean("mobs.enderman.ridable", endermanRidable);
|
||||
endermanRidableInWater = getBoolean("mobs.enderman.ridable-in-water", endermanRidableInWater);
|
||||
@@ -870,6 +873,7 @@ public class PurpurWorldConfig {
|
||||
@@ -872,6 +875,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 d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
}
|
||||
|
||||
public boolean endermiteRidable = false;
|
||||
@@ -1555,6 +1559,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1557,6 +1561,7 @@ public class PurpurWorldConfig {
|
||||
public float snowGolemSnowBallModifier = 10.0F;
|
||||
public double snowGolemAttackDistance = 1.25D;
|
||||
public boolean snowGolemBypassMobGriefing = false;
|
||||
@@ -113,7 +113,7 @@ index d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
private void snowGolemSettings() {
|
||||
snowGolemRidable = getBoolean("mobs.snow_golem.ridable", snowGolemRidable);
|
||||
snowGolemRidableInWater = getBoolean("mobs.snow_golem.ridable-in-water", snowGolemRidableInWater);
|
||||
@@ -1572,6 +1577,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1574,6 +1579,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 d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
}
|
||||
|
||||
public boolean squidRidable = false;
|
||||
@@ -1625,6 +1631,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1627,6 +1633,7 @@ public class PurpurWorldConfig {
|
||||
public double striderMaxHealth = 20.0D;
|
||||
public int striderBreedingTicks = 6000;
|
||||
public boolean striderGiveSaddleBack = false;
|
||||
@@ -129,7 +129,7 @@ index d9116e08fe128991a729694549143be0ebb4bade..c1adca881c703462fefbf1985950ac9d
|
||||
private void striderSettings() {
|
||||
striderRidable = getBoolean("mobs.strider.ridable", striderRidable);
|
||||
striderRidableInWater = getBoolean("mobs.strider.ridable-in-water", striderRidableInWater);
|
||||
@@ -1636,6 +1643,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1638,6 +1645,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);
|
||||
|
||||
Reference in New Issue
Block a user