Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Fix swapping of pitch and yaw in setLocation
Also use rotation(Pitch|Yaw) in getLocation for consistency with getPitch and getYaw.
Dieser Commit ist enthalten in:
Ursprung
3f171a95b7
Commit
07edf3d365
@ -81,8 +81,8 @@ public class ForgePlayer extends AbstractPlayerActor {
|
|||||||
return new Location(
|
return new Location(
|
||||||
ForgeWorldEdit.inst.getWorld(this.player.worldObj),
|
ForgeWorldEdit.inst.getWorld(this.player.worldObj),
|
||||||
position,
|
position,
|
||||||
this.player.cameraYaw,
|
this.player.rotationYaw,
|
||||||
this.player.cameraPitch);
|
this.player.rotationPitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -150,12 +150,11 @@ public class ForgePlayer extends AbstractPlayerActor {
|
|||||||
component.getChatStyle().setColor(formatting);
|
component.getChatStyle().setColor(formatting);
|
||||||
this.player.addChatMessage(component);
|
this.player.addChatMessage(component);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setPosition(Vector pos, float pitch, float yaw) {
|
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
|
@Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren