mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fix swapping of pitch and yaw in setLocation
Also use rotation(Pitch|Yaw) in getLocation for consistency with getPitch and getYaw.
This commit is contained in:
parent
3f171a95b7
commit
07edf3d365
@ -81,8 +81,8 @@ public Location getLocation() {
|
||||
return new Location(
|
||||
ForgeWorldEdit.inst.getWorld(this.player.worldObj),
|
||||
position,
|
||||
this.player.cameraYaw,
|
||||
this.player.cameraPitch);
|
||||
this.player.rotationYaw,
|
||||
this.player.rotationPitch);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -150,12 +150,11 @@ private void sendColorized(String msg, EnumChatFormatting formatting) {
|
||||
component.getChatStyle().setColor(formatting);
|
||||
this.player.addChatMessage(component);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPosition(Vector pos, float pitch, float yaw) {
|
||||
this.player.playerNetServerHandler.setPlayerLocation(pos.getX(), pos.getY(), pos.getZ(), pitch, yaw);
|
||||
this.player.playerNetServerHandler.setPlayerLocation(pos.getX(), pos.getY(), pos.getZ(), yaw, pitch);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user