mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-08-20 12:54:03 +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 {
|
||||
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