mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-13 19:52:03 +01:00
Duplicated code is so boring, ugh. Fixes #280.
This commit is contained in:
parent
ca387687a5
commit
0eb5063332
@ -30,7 +30,7 @@ public class Commandtppos extends EssentialsCommand {
|
||||
loc.setWorld(ess.getWorld(args[3]));
|
||||
}
|
||||
if (args.length > 4) {
|
||||
loc.setYaw((FloatUtil.parseFloat(args[3]) + 180 + 360) % 360);
|
||||
loc.setYaw((FloatUtil.parseFloat(args[3]) + 360) % 360);
|
||||
loc.setPitch(FloatUtil.parseFloat(args[4]));
|
||||
}
|
||||
if (args.length > 5) {
|
||||
|
Loading…
Reference in New Issue
Block a user