aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/moe
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-07-30 20:00:38 +0200
committernea <nea@nea.moe>2023-07-30 20:00:38 +0200
commitdbc56fb352134839800fad2a9d71dce6ab67349a (patch)
tree7e10d144bfbe1a064045d9b27b9f92746c1a3297 /src/main/java/moe
parentb9a22305dce467764b55b81cd0ae4e8fa6f6990d (diff)
downloadfirmament-dbc56fb352134839800fad2a9d71dce6ab67349a.tar.gz
firmament-dbc56fb352134839800fad2a9d71dce6ab67349a.tar.bz2
firmament-dbc56fb352134839800fad2a9d71dce6ab67349a.zip
Add more fishing debug stats. (waiting on admins lol)
Diffstat (limited to 'src/main/java/moe')
-rw-r--r--src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java b/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java
index 9d8463e..1c527ab 100644
--- a/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java
+++ b/src/main/java/moe/nea/firmament/mixins/MixinClientPacketHandler.java
@@ -22,6 +22,7 @@ import moe.nea.firmament.events.OutgoingPacketEvent;
import moe.nea.firmament.events.ParticleSpawnEvent;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.network.packet.Packet;
+import net.minecraft.network.packet.s2c.play.EntityPositionS2CPacket;
import net.minecraft.network.packet.s2c.play.ParticleS2CPacket;
import net.minecraft.util.math.Vec3d;
import org.spongepowered.asm.mixin.Mixin;
@@ -41,6 +42,11 @@ public class MixinClientPacketHandler {
));
}
+ @Inject(method = "onEntityPosition", at = @At(value = "TAIL"))
+ public void onEntityPosition(EntityPositionS2CPacket packet, CallbackInfo ci) {
+ System.out.printf("Got position update for %d", packet.getId());
+ }
+
@Inject(method = "sendPacket(Lnet/minecraft/network/packet/Packet;)V", at = @At("HEAD"), cancellable = true)
public void onSendPacket(Packet<?> packet, CallbackInfo ci) {
if (OutgoingPacketEvent.Companion.publish(new OutgoingPacketEvent(packet)).getCancelled()) {