mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-09-12 07:38:11 +02:00
Support decimals in the --xyz syntax for /npc moveto
This commit is contained in:
parent
79dcdb9df8
commit
08b463ac6b
@ -582,11 +582,11 @@ public class NPCCommands {
|
|||||||
} else {
|
} else {
|
||||||
to = current.clone();
|
to = current.clone();
|
||||||
if (args.hasValueFlag("x"))
|
if (args.hasValueFlag("x"))
|
||||||
to.setX(args.getFlagInteger("x"));
|
to.setX(args.getFlagDouble("x"));
|
||||||
if (args.hasValueFlag("y"))
|
if (args.hasValueFlag("y"))
|
||||||
to.setY(args.getFlagInteger("y"));
|
to.setY(args.getFlagDouble("y"));
|
||||||
if (args.hasValueFlag("z"))
|
if (args.hasValueFlag("z"))
|
||||||
to.setZ(args.getFlagInteger("z"));
|
to.setZ(args.getFlagDouble("z"));
|
||||||
if (args.hasValueFlag("yaw"))
|
if (args.hasValueFlag("yaw"))
|
||||||
to.setYaw((float) args.getFlagDouble("yaw"));
|
to.setYaw((float) args.getFlagDouble("yaw"));
|
||||||
if (args.hasValueFlag("pitch"))
|
if (args.hasValueFlag("pitch"))
|
||||||
|
Loading…
Reference in New Issue
Block a user