File tree Expand file tree Collapse file tree
src/main/java/io/github/misode/packtest/dummy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import net .minecraft .network .protocol .game .ClientboundEntityPositionSyncPacket ;
1010import net .minecraft .network .protocol .game .ClientboundRotateHeadPacket ;
1111import net .minecraft .network .protocol .game .ServerboundClientCommandPacket ;
12+ import net .minecraft .network .protocol .game .ServerboundMovePlayerPacket ;
1213import net .minecraft .resources .ResourceKey ;
1314import net .minecraft .server .MinecraftServer ;
1415import net .minecraft .server .TickTask ;
@@ -97,6 +98,15 @@ public void respawn() {
9798 server .getPlayerList ().respawn (this , false , Entity .RemovalReason .KILLED );
9899 }
99100
101+ @ Override
102+ public void forceSetRotation (float f , float g ) {
103+ this .setYRot (f );
104+ this .setXRot (g );
105+ this .setOldRot ();
106+
107+ this .connection .send (new ServerboundMovePlayerPacket .Rot (f , g , false , false ));
108+ }
109+
100110 @ SuppressWarnings ("resource" )
101111 @ Override
102112 public void tick () {
You can’t perform that action at this time.
0 commit comments