mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-19 03:21:20 +02:00
Fixing optional argument on tppos to use the correct yaw value.
This commit is contained in:
parent
4ad19b6fad
commit
ae4c10ced6
@ -28,7 +28,7 @@ public class Commandtppos extends EssentialsCommand
|
||||
final Location location = new Location(user.getWorld(), x, y, z);
|
||||
if (args.length > 3)
|
||||
{
|
||||
location.setYaw(Float.parseFloat(args[3]));
|
||||
location.setYaw((Float.parseFloat(args[3]) + 180 + 360) % 360);
|
||||
}
|
||||
if (args.length > 4)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user