mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-30 00:27:26 +02: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]));
|
loc.setWorld(ess.getWorld(args[3]));
|
||||||
}
|
}
|
||||||
if (args.length > 4) {
|
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]));
|
loc.setPitch(FloatUtil.parseFloat(args[4]));
|
||||||
}
|
}
|
||||||
if (args.length > 5) {
|
if (args.length > 5) {
|
||||||
|
Loading…
Reference in New Issue
Block a user