1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 12:01:20 +02:00

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 2a8266b31f
commit 5ff2f0b0c7

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)
{ {