From 2ed6502595ae991b5d72b23e4301dcf28786d1fd Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 29 Dec 2022 03:15:15 +0000 Subject: [PATCH] Port animations --- .../net/minecraft/client/network/NetHandlerPlayClient.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/net/minecraft/client/network/NetHandlerPlayClient.java b/src/main/java/net/minecraft/client/network/NetHandlerPlayClient.java index d9f86434..b36ca0bc 100644 --- a/src/main/java/net/minecraft/client/network/NetHandlerPlayClient.java +++ b/src/main/java/net/minecraft/client/network/NetHandlerPlayClient.java @@ -12,6 +12,7 @@ import com.google.common.collect.Maps; import dev.resent.Resent; import dev.resent.event.impl.ClientChatEvent; +import dev.resent.event.impl.EntityStatusEvent; import dev.resent.module.impl.misc.AutoGG; import dev.resent.util.misc.W; import net.lax1dude.eaglercraft.v1_8.netty.Unpooled; @@ -926,6 +927,10 @@ public class NetHandlerPlayClient implements INetHandlerPlayClient { */ public void handleEntityStatus(S19PacketEntityStatus packetIn) { Entity entity = packetIn.getEntity(this.clientWorldController); + + EntityStatusEvent event = new EntityStatusEvent(packetIn); + Resent.INSTANCE.events().post(event); + if (entity != null) { if (packetIn.getOpCode() == 21) { this.gameController.getSoundHandler().playSound(new GuardianSound((EntityGuardian) entity));