mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
stop mobs from targeting afk players (#564)
Co-authored-by: Encode42 <me@encode42.dev>
This commit is contained in:
@@ -6,7 +6,7 @@ Subject: [PATCH] Configurable mob blindness
|
||||
Ported from https://github.com/raltsmc/mobblindness
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
index f6fa7ff3f896dca5e3b5cc5f7836f4208b0ec8b6..dd88755ac380e5c85d5327d02bc3ec7e06355e49 100644
|
||||
index 7ec708e19f62c53cc64327affef3111d4841e09d..246d6bdb7c431f9aca2e337dd2d4dfa5f8baf486 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/LivingEntity.java
|
||||
@@ -992,6 +992,17 @@ public abstract class LivingEntity extends Entity {
|
||||
@@ -28,10 +28,10 @@ index f6fa7ff3f896dca5e3b5cc5f7836f4208b0ec8b6..dd88755ac380e5c85d5327d02bc3ec7e
|
||||
|
||||
return d0;
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index 844b2387407ed275aad4d295ea8fe26976fb2a2a..f7d7e223388c07ce95a1fe2d05247b438f5078c9 100644
|
||||
index 28ae7a7147fde41fe3742cd5235dc9d7b93f61fd..6cf13cafb904bb273736cc53c69ed9fdc33d23c4 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -445,6 +445,7 @@ public class PurpurWorldConfig {
|
||||
@@ -447,6 +447,7 @@ public class PurpurWorldConfig {
|
||||
public boolean persistentDroppableEntityDisplayNames = false;
|
||||
public boolean projectilesBypassMobGriefing = false;
|
||||
public boolean tickFluids = true;
|
||||
@@ -39,7 +39,7 @@ index 844b2387407ed275aad4d295ea8fe26976fb2a2a..f7d7e223388c07ce95a1fe2d05247b43
|
||||
public double tridentLoyaltyVoidReturnHeight = 0.0D;
|
||||
public double voidDamageHeight = -64.0D;
|
||||
public double voidDamageDealt = 4.0D;
|
||||
@@ -466,6 +467,7 @@ public class PurpurWorldConfig {
|
||||
@@ -468,6 +469,7 @@ public class PurpurWorldConfig {
|
||||
persistentDroppableEntityDisplayNames = getBoolean("gameplay-mechanics.persistent-droppable-entity-display-names", persistentDroppableEntityDisplayNames);
|
||||
projectilesBypassMobGriefing = getBoolean("gameplay-mechanics.projectiles-bypass-mob-griefing", projectilesBypassMobGriefing);
|
||||
tickFluids = getBoolean("gameplay-mechanics.tick-fluids", tickFluids);
|
||||
|
||||
Reference in New Issue
Block a user