From 717a651bd808d859d03d9d35f6c993014882c334 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 2 Oct 2024 01:20:08 +0100 Subject: [PATCH] typos in comments --- promise.lua | 2 +- worldeditadditions/lib/rotate.lua | 2 +- worldeditadditions_core/utils/parse/axes_rotation.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/promise.lua b/promise.lua index 8da0b79..6f30ef1 100644 --- a/promise.lua +++ b/promise.lua @@ -63,7 +63,7 @@ local function do_run(promise, args, depth, origin_resolve) local results if depth == 1 then -- This function is the inner one of a promise already. - -- It has already recieved arguments, so it expected resolve/reject instead + -- It has already received arguments, so it expected resolve/reject instead next.fn_then_(function(...) -- RESOLVE if getmetatable(arg[1]) == Promise then promise.state = "rejected" diff --git a/worldeditadditions/lib/rotate.lua b/worldeditadditions/lib/rotate.lua index d9db6e5..e827975 100644 --- a/worldeditadditions/lib/rotate.lua +++ b/worldeditadditions/lib/rotate.lua @@ -104,7 +104,7 @@ function worldeditadditions.rotate(pos1, pos2, origin, rotlist) --- 6: Reinitialise the destination VoxelManip and copy data over - -- This has the net effect of changing ONLY the nodes we rotate to, whle preserving changes from wiping the source + -- This has the net effect of changing ONLY the nodes we rotate to, while preserving changes from wiping the source manip_dest, area_dest = worldedit.manip_helpers.init(pos1_dstvm, pos2_dstvm) data_dest_real = manip_dest:get_data() diff --git a/worldeditadditions_core/utils/parse/axes_rotation.lua b/worldeditadditions_core/utils/parse/axes_rotation.lua index ef4a69f..8e8af33 100644 --- a/worldeditadditions_core/utils/parse/axes_rotation.lua +++ b/worldeditadditions_core/utils/parse/axes_rotation.lua @@ -33,7 +33,7 @@ end -- - right → rotate around Z to right -- - pitch, yaw, roll - clockwise is considered positive. -- @param str string The axis to parse, as a single (pre-trimmed) string. --- @param [player=nil] Player Optional. A Minetest Player object representing the player to make any relative keywords like front-back/pitch/roll/etc relative to in parsing. Defautls to nil, which disables parsing of relatiive terms. Any object passed just needs to support player:get_look_horizontal(): https://github.com/minetest/minetest/blob/master/doc/lua_api.md#player-only-no-op-for-other-objects +-- @param [player=nil] Player Optional. A Minetest Player object representing the player to make any relative keywords like front-back/pitch/roll/etc relative to in parsing. Defaults to nil, which disables parsing of relatiive terms. Any object passed just needs to support player:get_look_horizontal(): https://github.com/minetest/minetest/blob/master/doc/lua_api.md#player-only-no-op-for-other-objects -- @returns bool,Vector3|string A success bool (false=failure) followed by either an error message (if success=false) or otherwise the axis name, parsed into a Vector3 instance. local function parse_rotation_axis_name(str, player) local vector = Vector3.new(0, 0, 0)