diff options
author | KHobbits <rob@khobbits.co.uk> | 2011-11-27 01:15:14 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2011-11-27 01:15:14 +0000 |
commit | ae4c10ced63f3b03639d39a2a9dcf7e3cba3098a (patch) | |
tree | 532796412b12208a6d1b4d6a56a60e219cad0f82 | |
parent | 4ad19b6fad999b30f5fdbb3712f1203dfaf37ede (diff) | |
download | Essentials-ae4c10ced63f3b03639d39a2a9dcf7e3cba3098a.tar Essentials-ae4c10ced63f3b03639d39a2a9dcf7e3cba3098a.tar.gz Essentials-ae4c10ced63f3b03639d39a2a9dcf7e3cba3098a.tar.lz Essentials-ae4c10ced63f3b03639d39a2a9dcf7e3cba3098a.tar.xz Essentials-ae4c10ced63f3b03639d39a2a9dcf7e3cba3098a.zip |
Fixing optional argument on tppos to use the correct yaw value.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandtppos.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtppos.java b/Essentials/src/com/earth2me/essentials/commands/Commandtppos.java index 7aa0e66f8..203628753 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandtppos.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandtppos.java @@ -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) { |