stop mobs from targeting afk players (#564)

Co-authored-by: Encode42 <me@encode42.dev>
This commit is contained in:
granny
2021-08-08 18:32:27 -07:00
committed by GitHub
parent 3c451101ac
commit fc79bca3c5
141 changed files with 502 additions and 484 deletions

View File

@@ -28,10 +28,10 @@ index 29b841462037fa97f72971c490b617d18be53160..fe963c666488a8a3463f855b0c87eee9
entityhorseskeleton.setPos((double) blockposition.getX(), (double) blockposition.getY(), (double) blockposition.getZ());
this.addEntity(entityhorseskeleton, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.LIGHTNING); // CraftBukkit
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
index 172c9e282b295d16ef88d95bb6b621a1050dc684..8462e9221c136cda32f0fe2471d851ceaa08b721 100644
index d43028de9ee9ad9d2ffa7ad09ab914ba6baa9da2..838453200e76534768c4fdfa6066999fa2735349 100644
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
@@ -1251,6 +1251,7 @@ public class PurpurWorldConfig {
@@ -1253,6 +1253,7 @@ public class PurpurWorldConfig {
public double zombieHorseJumpStrengthMax = 1.0D;
public double zombieHorseMovementSpeedMin = 0.2D;
public double zombieHorseMovementSpeedMax = 0.2D;
@@ -39,7 +39,7 @@ index 172c9e282b295d16ef88d95bb6b621a1050dc684..8462e9221c136cda32f0fe2471d851ce
private void zombieHorseSettings() {
zombieHorseRidableInWater = getBoolean("mobs.zombie_horse.ridable-in-water", zombieHorseRidableInWater);
zombieHorseCanSwim = getBoolean("mobs.zombie_horse.can-swim", zombieHorseCanSwim);
@@ -1266,6 +1267,7 @@ public class PurpurWorldConfig {
@@ -1268,6 +1269,7 @@ public class PurpurWorldConfig {
zombieHorseJumpStrengthMax = getDouble("mobs.zombie_horse.attributes.jump_strength.max", zombieHorseJumpStrengthMax);
zombieHorseMovementSpeedMin = getDouble("mobs.zombie_horse.attributes.movement_speed.min", zombieHorseMovementSpeedMin);
zombieHorseMovementSpeedMax = getDouble("mobs.zombie_horse.attributes.movement_speed.max", zombieHorseMovementSpeedMax);