Integration of last merges changes

This commit is contained in:
Danielv123 committed 2016-08-13 15:54:01 +02:00
1 parent a25d3be98d
commit 5bbb961f54
5 files changed
+19 -16

No files matched your search

+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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()