Skip to content

Commit

Permalink
Fix signature for location_shift()
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Feb 7, 2024
1 parent b80b2f8 commit 6353b69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/laytonsmith/core/functions/World.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.laytonsmith.core.constructs.CDouble;
import com.laytonsmith.core.constructs.CInt;
import com.laytonsmith.core.constructs.CNull;
import com.laytonsmith.core.constructs.CNumber;
import com.laytonsmith.core.constructs.CString;
import com.laytonsmith.core.constructs.CVoid;
import com.laytonsmith.core.constructs.Target;
Expand Down Expand Up @@ -1986,7 +1987,7 @@ public FunctionSignatures getSignatures() {
return new SignatureBuilder(CArray.TYPE)
.param(CArray.TYPE, "origin", "The original location.")
.param(CArray.TYPE, "target", "The final target location.")
.param(CDouble.TYPE, "distance", "Defaults to 1.0. The distance to move. If clamp is true,"
.param(CNumber.TYPE, "distance", "Defaults to 1.0. The distance to move. If clamp is true,"
+ " the maximum distance to move.", true)
.param(Booleanish.TYPE, "clamp", "Defaults to false. If true, and the target location is closer"
+ " than the distance provided, the final destination is returned, instead of a location"
Expand All @@ -1995,7 +1996,7 @@ public FunctionSignatures getSignatures() {
.newSignature(CArray.TYPE)
.param(CArray.TYPE, "origin", "The original location.")
.param(CString.TYPE, "direction", "The direction to move, a BlockFace value.")
.param(CDouble.TYPE, "distance", "Defaults to 1.0. The distance to move.", true)
.param(CNumber.TYPE, "distance", "Defaults to 1.0. The distance to move.", true)
.build();

}
Expand Down

0 comments on commit 6353b69

Please sign in to comment.