diff --git a/src/main/java/net/minestom/server/command/builder/arguments/relative/ArgumentRelativeVec.java b/src/main/java/net/minestom/server/command/builder/arguments/relative/ArgumentRelativeVec.java index daf251ea9..dc4c4f37f 100644 --- a/src/main/java/net/minestom/server/command/builder/arguments/relative/ArgumentRelativeVec.java +++ b/src/main/java/net/minestom/server/command/builder/arguments/relative/ArgumentRelativeVec.java @@ -80,7 +80,7 @@ abstract class ArgumentRelativeVec extends Argument { return new RelativeVec(split.length == 3 ? new Vec(coordinates[0], coordinates[1], coordinates[2]) : new Vec(coordinates[0], coordinates[1]), type, - isRelative[0], isRelative[1], isRelative[2]); + isRelative[0], split.length == 3 && isRelative[1], isRelative[split.length == 3 ? 2 : 1]); } /**