first documented use the @Priority annotation

This commit is contained in:
Jess H 2024-05-28 05:59:27 +01:00
parent 527c86074b
commit 8c69c31cca

View file

@ -3,6 +3,7 @@ package com.baseband.client.module.movement;
import com.baseband.client.configuration.annotation.Config;
import com.baseband.client.configuration.annotation.Gate;
import com.baseband.client.configuration.annotation.Range;
import com.baseband.client.event.Priority;
import com.baseband.client.event.events.MoveEvent;
import com.baseband.client.event.events.PacketEvent;
import com.baseband.client.mixins.IMinecraft;
@ -75,6 +76,9 @@ public class Speed extends Feature {
}
//Time will tell.
//higher priority than default, so we can get explosion packets before velocity fucks with them
@Priority(priority = 2)
public void onPacketReceive(PacketEvent.Read event) {
if (event.getPacket() instanceof SPacketPlayerPosLook && lagBack) {
bunnySpeed = 0;