Port animations

This commit is contained in:
ThisIsALegitUsername 2022-12-29 03:15:15 +00:00
parent 40d94bbdc5
commit 2ed6502595

View File

@ -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));