fix rotatehead
This commit is contained in:
parent
c374b5f5af
commit
c7b486f0a9
2 changed files with 6 additions and 5 deletions
|
@ -5,9 +5,7 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="9d5d9b6f-43c8-41a4-bb42-a66ffc96c9b0" name="Changes" comment="">
|
<list default="true" id="9d5d9b6f-43c8-41a4-bb42-a66ffc96c9b0" name="Changes" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java" beforeDir="false" afterPath="$PROJECT_DIR$/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperPlayer.java" beforeDir="false" afterPath="$PROJECT_DIR$/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperPlayer.java" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java" beforeDir="false" afterPath="$PROJECT_DIR$/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -308,6 +306,8 @@
|
||||||
<workItem from="1708462795417" duration="1244000" />
|
<workItem from="1708462795417" duration="1244000" />
|
||||||
<workItem from="1708508458793" duration="103000" />
|
<workItem from="1708508458793" duration="103000" />
|
||||||
<workItem from="1708512937708" duration="3296000" />
|
<workItem from="1708512937708" duration="3296000" />
|
||||||
|
<workItem from="1708549665711" duration="100000" />
|
||||||
|
<workItem from="1708550708196" duration="523000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -300,8 +300,9 @@ public class WrapperEntity implements Tickable, TrackedEntity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void rotateHead(float yaw, float pitch) {
|
public void rotateHead(float yaw, float pitch) {
|
||||||
sendPacketToViewers(
|
sendPacketsToViewers(
|
||||||
new WrapperPlayServerEntityRotation(entityId, yaw, pitch, onGround)
|
new WrapperPlayServerEntityRotation(entityId, yaw, pitch, onGround),
|
||||||
|
new WrapperPlayServerEntityHeadLook(entityId, yaw)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue