diff --git a/README.md b/README.md index 38ffcef..7653772 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Autofilter -![mod thumbnail](https://raw.githubusercontent.com/Wyrrrd/Autofilter/master/thumbnail.png) + Description: -- When you place a filter inserter, it reads either the inventory contents or inventory filters on the pickup side and sets it's filter to those items. +- When you place a filter inserter, it reads either the inventory contents or inventory filters on the pickup side and sets its filter to those items. - Fills the inserter's filter only until it is full (of course). - The mode can be changed or disabled in player mod settings on the fly as needed. - Should work with most modded filter inserters. diff --git a/changelog.txt b/changelog.txt index 5a7dd35..7777ad4 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,12 @@ --------------------------------------------------------------------------------------------------- +Version: 0.18.3 +Date: 23. 2. 2020 + Changes: + - Minor improvements (typos, code style) + + Graphics: + - Changed thumbnail to the better +--------------------------------------------------------------------------------------------------- Version: 0.18.2 Date: 22. 2. 2020 Changes: diff --git a/control.lua b/control.lua index 6e9d844..6955058 100644 --- a/control.lua +++ b/control.lua @@ -3,7 +3,7 @@ --functions definitions local function get_items_by_content(inserter,inventory) local items = {} - for item,count in pairs(inventory.get_contents()) do + for item,_ in pairs(inventory.get_contents()) do if #items < inserter.filter_slot_count then items[#items+1] = item end diff --git a/info.json b/info.json index 06c1466..c0af410 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "Autofilter", - "version": "0.18.2", + "version": "0.18.3", "title": "Autofilter", "author": "Wyrrrd", "dependencies": ["base >= 0.18.0"], diff --git a/thumbnail.png b/thumbnail.png index c7a22fe..94ba96d 100644 Binary files a/thumbnail.png and b/thumbnail.png differ