Fix an oopsie

This commit is contained in:
jordan4ibanez 2023-11-14 03:34:03 -05:00
parent b4253ad4f0
commit 3e4ef2aca5
2 changed files with 2 additions and 2 deletions

2
minetest-api.d.ts vendored
View File

@ -1041,7 +1041,7 @@ declare global {
export function create(x?: number, y?: number, z?: number): Vec3
// Everything else is a bolt on created in the utility module.
export function create2d(x?: number, y?: number): Vec2
export function random(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): Vec3
export function random(minX: number, maxX: number, minY: number, maxY: number, minZ: number, maxZ: number): Vec3
export function distance2d(vec1: Vec3, vec2: Vec3): number
}

View File

@ -91,7 +91,7 @@ module utility {
const create = vector.create;
// TS is kinda cool
vector.random = function(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): Vec3 {
vector.random = function(minX: number, maxX: number, minY: number, maxY: number, minZ: number, maxZ: number): Vec3 {
return create(
rr(minX, maxX),
rr(minY, maxY),