mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-26 16:37:13 +09:00
Integration of last merges changes
This commit is contained in:
1 parent
a25d3be98d
commit
5bbb961f54
5 files changed
+19
-16
No files matched your search
@@ -2,10 +2,10 @@
|
||||
INPUT_CHEST_NAME = "put-chest"
|
||||
INPUT_CHEST_PICTURE_PATH = nil
|
||||
INPUT_CHEST_ICON_PATH = nil
|
||||
INPUT_CHEST_FILE = "intput-items.txt"
|
||||
INPUT_CHEST_FILE = "output.txt"
|
||||
|
||||
--the chest that the player get things from
|
||||
OUTPUT_CHEST_NAME = "get-chest"
|
||||
OUTPUT_CHEST_PICTURE_PATH = nil
|
||||
OUTPUT_CHEST_ICON_PATH = nil
|
||||
OUTPUT_CHEST_FILE = "output-items.txt"
|
||||
OUTPUT_CHEST_FILE = "orders.txt"
|
||||
@@ -76,7 +76,7 @@ function HandleInputChests()
|
||||
local items = v.get_inventory(defines.inventory.chest).get_contents()
|
||||
--write everything to the file
|
||||
for itemName, itemCount in pairs(items) do
|
||||
linesToWriteToFile[#linesToWriteToFile + 1] = itemName..", "..itemCount.."\n"
|
||||
linesToWriteToFile[#linesToWriteToFile + 1] = itemName.. " " ..itemCount.."\n"
|
||||
end
|
||||
-- clear the inventory
|
||||
v.get_inventory(defines.inventory.chest).clear()
|
||||
|
||||
Reference in new issue
Block a user