mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 17:37:42 +01:00
[ci-skip] Forgot the comment!
I am deeply sorry for my actions. I encountered a lapse of judgement and am attempting to better my mistakes.
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Config to disable Enderman teleport on projectile hit
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
diff --git a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
||||||
index ba61f78874d8578b862f317fe00a3162c45253e0..00eb217aac728a6dde32837bb02f34e4ff0d85c0 100644
|
index ba61f78874d8578b862f317fe00a3162c45253e0..42370072dac9144be5c07f88d24d8ba4705d68dd 100644
|
||||||
--- a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
--- a/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
||||||
+++ b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
+++ b/src/main/java/net/minecraft/world/entity/monster/EnderMan.java
|
||||||
@@ -394,7 +394,7 @@ public class EnderMan extends Monster implements NeutralMob {
|
@@ -394,7 +394,7 @@ public class EnderMan extends Monster implements NeutralMob {
|
||||||
@@ -13,7 +13,7 @@ index ba61f78874d8578b862f317fe00a3162c45253e0..00eb217aac728a6dde32837bb02f34e4
|
|||||||
} else if (getRider() != null) { return super.hurt(source, amount); // Purpur - no teleporting on damage
|
} else if (getRider() != null) { return super.hurt(source, amount); // Purpur - no teleporting on damage
|
||||||
} else if (net.pl3x.purpur.PurpurConfig.endermanShortHeight && source == DamageSource.IN_WALL) { return false; // Purpur - no suffocation damage if short height
|
} else if (net.pl3x.purpur.PurpurConfig.endermanShortHeight && source == DamageSource.IN_WALL) { return false; // Purpur - no suffocation damage if short height
|
||||||
- } else if (source instanceof IndirectEntityDamageSource) {
|
- } else if (source instanceof IndirectEntityDamageSource) {
|
||||||
+ } else if (source instanceof IndirectEntityDamageSource && !(this.level.purpurConfig.endermanIgnoreProjectiles && source.getDirectEntity() instanceof net.minecraft.world.entity.projectile.Projectile)) {
|
+ } else if (source instanceof IndirectEntityDamageSource && !(this.level.purpurConfig.endermanIgnoreProjectiles && source.getDirectEntity() instanceof net.minecraft.world.entity.projectile.Projectile)) { // Purpur
|
||||||
if (this.tryEscape(com.destroystokyo.paper.event.entity.EndermanEscapeEvent.Reason.INDIRECT)) { // Paper start
|
if (this.tryEscape(com.destroystokyo.paper.event.entity.EndermanEscapeEvent.Reason.INDIRECT)) { // Paper start
|
||||||
for (int i = 0; i < 64; ++i) {
|
for (int i = 0; i < 64; ++i) {
|
||||||
if (this.teleport()) {
|
if (this.teleport()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user