From 7a659e230b03da819e5a53d63ae032a23fb37c1e Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Tue, 27 Dec 2022 21:47:33 +0000 Subject: [PATCH] Port entitystatusevent --- .../resent/event/impl/EntityStatusEvent.class | Bin 615 -> 604 bytes .../play/server/S19PacketEntityStatus.class | Bin 2238 -> 2238 bytes .../resent/event/impl/EntityStatusEvent.java | 6 +++--- .../play/server/S19PacketEntityStatus.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/main/dev/resent/event/impl/EntityStatusEvent.class b/bin/main/dev/resent/event/impl/EntityStatusEvent.class index 9aff1c77fcb6f6fddbcf41f460bab46a39cf7c2d..4b9d6dd4fd2ee8836485f2f2d0491f64c0bdc886 100644 GIT binary patch literal 604 zcmbVJO-sW-5PjRGjY-p1tJaTt@nl=UAP7=gJSY`}phBhhZMy2(G%3k8(w`+Lf(L(q zKT4d$9*W?lEX?kE%-flH^Y#7l3E%{KIx-9gLlN7dh=i|f5hqcOC!XE)l~l8y;%XXo z6IzGHQ2Qr2NnprFX*vTtC(x0;RA&sGy5kFFkEJi%kl!nt&~p%u?1{%`b|k`Bgm&+^ zb<5q6P>XfjjXr~R5e$WiED9EMSPa>Eqi>*uRUKu9(X@Olr8Pt9NcN(A1 delta 358 zcmZvYK}$kG6ot>IWR9;aQ_EHpwa|?&auK!7MPLwULC|J=jW+e(%wuK}TD5C0?)w`- zK`q+#8`}FXqDhb-+I;t3&f%WR{me`=^yBOK6+jD{V>-xJYn>Aw-Uzq5H-4<#XOSl; zT=NlcMqCY>ZDX`q#1g^7sWQUqXe2IKsN+ON+)1riVst+evE64h*Siu-#)&qLDd8Hi zR3bEd;2PG1EaXaQ$NGZJ_t4xtx~-gacU^bL-L3t{$(&}Kxw}MA3W`F2ELI50wa)LU zU1y{k9@Nh!+vH;MPIl^9Y!HE#(KsQQ}m+WI#!R$vnV diff --git a/bin/main/net/minecraft/network/play/server/S19PacketEntityStatus.class b/bin/main/net/minecraft/network/play/server/S19PacketEntityStatus.class index a70a717a9b48e2e4990cf1c7bef612d2d8a2f295..ed661b38715c5ded4edaafd0f2bdbef2f9c23691 100644 GIT binary patch delta 14 VcmdldxKD6{JR2k9W(Br+OaLNv1MdI; delta 14 VcmdldxKD6{JR2j^W(Br+OaLN#1MmO< diff --git a/src/main/java/dev/resent/event/impl/EntityStatusEvent.java b/src/main/java/dev/resent/event/impl/EntityStatusEvent.java index 46ca58f2..0064f94c 100644 --- a/src/main/java/dev/resent/event/impl/EntityStatusEvent.java +++ b/src/main/java/dev/resent/event/impl/EntityStatusEvent.java @@ -1,13 +1,13 @@ package dev.resent.event.impl; -import net.minecraft.src.Packet38EntityStatus; +import net.minecraft.network.play.server.S19PacketEntityStatus; public class EntityStatusEvent extends Event{ public byte status; - public EntityStatusEvent(Packet38EntityStatus event){ - this.status = event.entityStatus; + public EntityStatusEvent(S19PacketEntityStatus event){ + this.status = event.logicOpcode; } } \ No newline at end of file diff --git a/src/main/java/net/minecraft/network/play/server/S19PacketEntityStatus.java b/src/main/java/net/minecraft/network/play/server/S19PacketEntityStatus.java index ba978bb5..68a98919 100644 --- a/src/main/java/net/minecraft/network/play/server/S19PacketEntityStatus.java +++ b/src/main/java/net/minecraft/network/play/server/S19PacketEntityStatus.java @@ -28,7 +28,7 @@ import net.minecraft.world.World; */ public class S19PacketEntityStatus implements Packet { private int entityId; - private byte logicOpcode; + public byte logicOpcode; public S19PacketEntityStatus() { }