geforkt von Mirrors/Paper
21 Zeilen
1.3 KiB
Diff
21 Zeilen
1.3 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||
|
Date: Fri, 19 Mar 2021 23:39:09 -0400
|
||
|
Subject: [PATCH] Add ElderGuardianAppearanceEvent
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/world/entity/monster/ElderGuardian.java b/src/main/java/net/minecraft/world/entity/monster/ElderGuardian.java
|
||
|
index 0b6c6740e1411a558d224589b3786f3ba8e0a1bc..0da2eecda83ba4e4acd4dd0603c77066d4fd060f 100644
|
||
|
--- a/src/main/java/net/minecraft/world/entity/monster/ElderGuardian.java
|
||
|
+++ b/src/main/java/net/minecraft/world/entity/monster/ElderGuardian.java
|
||
|
@@ -70,7 +70,9 @@ public class ElderGuardian extends Guardian {
|
||
|
List<ServerPlayer> list = MobEffectUtil.addEffectToPlayersAround((ServerLevel) this.level, this, this.position(), 50.0D, mobeffect, 1200, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ATTACK); // CraftBukkit
|
||
|
|
||
|
list.forEach((entityplayer) -> {
|
||
|
+ if (new io.papermc.paper.event.entity.ElderGuardianAppearanceEvent(getBukkitEntity(), entityplayer.getBukkitEntity()).callEvent()) { // Paper - Add Guardian Appearance Event
|
||
|
entityplayer.connection.send(new ClientboundGameEventPacket(ClientboundGameEventPacket.GUARDIAN_ELDER_EFFECT, this.isSilent() ? 0.0F : 1.0F));
|
||
|
+ } // Paper
|
||
|
});
|
||
|
}
|
||
|
|