summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-11-27 01:15:14 +0000
committerKHobbits <rob@khobbits.co.uk>2011-11-27 01:15:14 +0000
commitae4c10ced63f3b03639d39a2a9dcf7e3cba3098a (patch)
tree532796412b12208a6d1b4d6a56a60e219cad0f82
parent4ad19b6fad999b30f5fdbb3712f1203dfaf37ede (diff)
downloadEssentials-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.java2
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)
{