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