From 2eb5557146a4fdf5146adbd7f90c1db31d09e761 Mon Sep 17 00:00:00 2001 From: oof2win2 Date: Sat, 14 May 2022 23:28:17 +0200 Subject: [PATCH] fix(docs): copy and move items --- expcore/common.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/expcore/common.lua b/expcore/common.lua index 337b1c28..3bc94165 100644 --- a/expcore/common.lua +++ b/expcore/common.lua @@ -538,17 +538,17 @@ end --- Factorio. -- @section factorio ---[[-- Moves items to the position and stores them in the closest entity of the type given +--[[-- Copies items to the position and stores them in the closest entity of the type given -- Copies the items by prototype name, but keeps them in the original inventory @tparam table items items which are to be added to the chests, an array of LuaItemStack -@tparam[opt=navies] LuaSurface surface the surface that the items will be moved to -@tparam[opt={0, 0}] table position the position that the items will be moved to {x=100, y=100} +@tparam[opt=navies] LuaSurface surface the surface that the items will be copied to +@tparam[opt={0, 0}] table position the position that the items will be copied to {x=100, y=100} @tparam[opt=32] number radius the radius in which the items are allowed to be placed -@tparam[opt=iron-chest] string chest_type the chest type that the items should be moved into +@tparam[opt=iron-chest] string chest_type the chest type that the items should be copied into @treturn LuaEntity the last chest that had items inserted into it @usage-- Copy all the items in a players inventory and place them in chests at {0, 0} -move_items(game.player.get_main_inventory().get_contents()) +copy_items_stack(game.player.get_main_inventory().get_contents()) ]] function Common.copy_items_stack(items, surface, position, radius, chest_type) @@ -609,7 +609,7 @@ end @treturn LuaEntity the last chest that had items inserted into it @usage-- Copy all the items in a players inventory and place them in chests at {0, 0} -move_items(game.player.get_main_inventory()) +move_items_stack(game.player.get_main_inventory()) ]] function Common.move_items_stack(items, surface, position, radius, chest_type)