Fixing optional argument on tppos to use the correct yaw value.

This commit is contained in:
KHobbits 2011-11-27 01:15:14 +00:00
parent 4ad19b6fad
commit ae4c10ced6

View file

@ -28,7 +28,7 @@ public class Commandtppos extends EssentialsCommand
final Location location = new Location(user.getWorld(), x, y, z); final Location location = new Location(user.getWorld(), x, y, z);
if (args.length > 3) if (args.length > 3)
{ {
location.setYaw(Float.parseFloat(args[3])); location.setYaw((Float.parseFloat(args[3]) + 180 + 360) % 360);
} }
if (args.length > 4) if (args.length > 4)
{ {