mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
typos in comments
This commit is contained in:
parent
d74427e017
commit
717a651bd8
3 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ local function do_run(promise, args, depth, origin_resolve)
|
||||||
local results
|
local results
|
||||||
if depth == 1 then
|
if depth == 1 then
|
||||||
-- This function is the inner one of a promise already.
|
-- 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
|
next.fn_then_(function(...) -- RESOLVE
|
||||||
if getmetatable(arg[1]) == Promise then
|
if getmetatable(arg[1]) == Promise then
|
||||||
promise.state = "rejected"
|
promise.state = "rejected"
|
||||||
|
|
|
@ -104,7 +104,7 @@ function worldeditadditions.rotate(pos1, pos2, origin, rotlist)
|
||||||
|
|
||||||
|
|
||||||
--- 6: Reinitialise the destination VoxelManip and copy data over
|
--- 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)
|
manip_dest, area_dest = worldedit.manip_helpers.init(pos1_dstvm, pos2_dstvm)
|
||||||
data_dest_real = manip_dest:get_data()
|
data_dest_real = manip_dest:get_data()
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ end
|
||||||
-- - right → rotate around Z to right
|
-- - right → rotate around Z to right
|
||||||
-- - pitch, yaw, roll - clockwise is considered positive.
|
-- - pitch, yaw, roll - clockwise is considered positive.
|
||||||
-- @param str string The axis to parse, as a single (pre-trimmed) string.
|
-- @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.
|
-- @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 function parse_rotation_axis_name(str, player)
|
||||||
local vector = Vector3.new(0, 0, 0)
|
local vector = Vector3.new(0, 0, 0)
|
||||||
|
|
Loading…
Reference in a new issue