mirror of
https://github.com/Wyrrrd/Autofilter.git
synced 2026-06-30 10:02:27 +02:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5877674873 | |||
| fffc74e0e8 | |||
| c178327717 | |||
| 8eac59487b | |||
| aa5d98b0f9 | |||
| 2751d12b5c | |||
| 3fbbc2f144 |
@@ -1,4 +1,16 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.4
|
||||
Date: 2026-02-19
|
||||
Locale:
|
||||
- Update french and japanese
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.3
|
||||
Date: 2025-09-30
|
||||
Changes:
|
||||
- Update deprecated inventory defines
|
||||
Bugfixes:
|
||||
- Catch crash with infinity containers
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.2
|
||||
Date: 2024-12-19
|
||||
Locale:
|
||||
|
||||
+11
-5
@@ -69,11 +69,11 @@ end
|
||||
local function remove_noninsertable_items(items,entity)
|
||||
local search_inventories = {
|
||||
chest = {defines.inventory.chest},
|
||||
furnace = {defines.inventory.furnace_source},
|
||||
furnace = {defines.inventory.crafter_input},
|
||||
roboport = {defines.inventory.roboport_robot, defines.inventory.roboport_material},
|
||||
assembling_machine = {defines.inventory.assembling_machine_input},
|
||||
assembling_machine = {defines.inventory.crafter_input},
|
||||
lab = {defines.inventory.lab_input},
|
||||
rocket_silo = {defines.inventory.rocket_silo_rocket, defines.inventory.rocket_silo_input},
|
||||
rocket_silo = {defines.inventory.rocket_silo_rocket, defines.inventory.crafter_input},
|
||||
cargo_wagon = {defines.inventory.cargo_wagon},
|
||||
turret = {defines.inventory.turret_ammo},
|
||||
artillery_turret = {defines.inventory.artillery_turret_ammo},
|
||||
@@ -144,8 +144,14 @@ end
|
||||
local function get_items_by_entity_filter(entity)
|
||||
local filter_items = {}
|
||||
for slot = 1,entity.filter_slot_count do
|
||||
if entity.get_filter(slot) then
|
||||
filter_items[#filter_items+1] = get_item_name(entity.get_filter(slot))
|
||||
if entity.type == "infinity-container" then
|
||||
if entity.get_infinity_container_filter(slot) then
|
||||
filter_items[#filter_items+1] = get_item_name(entity.get_infinity_container_filter(slot))
|
||||
end
|
||||
else
|
||||
if entity.get_filter(slot) then
|
||||
filter_items[#filter_items+1] = get_item_name(entity.get_filter(slot))
|
||||
end
|
||||
end
|
||||
end
|
||||
return filter_items
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Autofilter",
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.4",
|
||||
"title": "Autofilter",
|
||||
"author": "Wyrrrd",
|
||||
"dependencies": [
|
||||
|
||||
@@ -8,8 +8,10 @@ autofilter_mode=Mode du filtre automatique
|
||||
autofilter_mode=Sélectionner la priorité de la source (contents = contenu de l'inventaire, filter = filtre de l'inventaire, belt = contenu du convoyeur, check = s'assurer qu'il y a de la place dans la zone de dépôt).
|
||||
|
||||
[tips-and-tricks-item-name]
|
||||
autofilter=Filtre automatique
|
||||
|
||||
[tips-and-tricks-item-description]
|
||||
|
||||
[shortcut-name]
|
||||
autofilter=Filtre automatique
|
||||
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
[mod-description]
|
||||
Autofilter=隣接するインベントリ/ベルトに基づきインサーターフィルタを自動的に設定します。
|
||||
|
||||
[mod-setting-name]
|
||||
autofilter_mode=自動フィルタモード
|
||||
|
||||
[mod-setting-description]
|
||||
autofilter_mode=読み取り元の優先度を設定します(contents = インベントリ内容、filter = インベントリフィルタ、belt = ベルト上のアイテム、check = ドロップ位置でのインサーターの作動可否)。
|
||||
|
||||
[tips-and-tricks-item-name]
|
||||
autofilter=オートフィルタ
|
||||
|
||||
[tips-and-tricks-item-description]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user