Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TIMER-err committed Mar 31, 2024
1 parent 87a6304 commit 02c94f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cn/yapeteam/yolbi/module/impl/misc/NoteBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import lombok.Setter;
import net.minecraft.block.Block;
import net.minecraft.block.BlockNote;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.network.play.client.C07PacketPlayerDigging;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
import net.minecraft.util.BlockPos;
Expand Down Expand Up @@ -195,6 +196,7 @@ private void onUpdate(EventMotion e) {
rotation = RotationsUtil.getRotationsToBlockPos(pos);
e.setYaw(rotation[0]);
e.setPitch(rotation[1]);
mc.getNetHandler().getNetworkManager().sendPacket(new C03PacketPlayer.C05PacketPlayerLook(rotation[0], rotation[1], e.isOnGround()));
mc.thePlayer.swingItem();
mc.getNetHandler().getNetworkManager().sendPacket(new C07PacketPlayerDigging(C07PacketPlayerDigging.Action.START_DESTROY_BLOCK, pos, EnumFacing.UP));
} else System.err.println("Bad: " + note.getNote() + ", " + note.getInst());
Expand All @@ -206,7 +208,6 @@ private void onUpdate(EventMotion e) {
playingMusic = null;
setEnabled(false);
}

}

private void play(File file) {
Expand Down

0 comments on commit 02c94f8

Please sign in to comment.