mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
Fixing optional argument on tppos to use the correct yaw value.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user