mirror of
https://github.com/Wyrrrd/Autofilter.git
synced 2026-07-01 18:20:41 +02:00
Compare commits
9 Commits
b9fb3270df
..
v2.0.4
| Author | SHA1 | Date | |
|---|---|---|---|
| 5877674873 | |||
| fffc74e0e8 | |||
| c178327717 | |||
| 8eac59487b | |||
| aa5d98b0f9 | |||
| 2751d12b5c | |||
| 3fbbc2f144 | |||
| cef622eaa7 | |||
| 225b9732d3 |
@@ -22,8 +22,4 @@ This mod should work with all modded inserters, but I specifically added compati
|
||||
+ [Bob's Adjustable Inserters](https://mods.factorio.com/mod/bobinserters) - rotated pickup positions
|
||||
|
||||
### Locale
|
||||
If you want to contribute by translating this mod, you can view the existing translations on [Crowdin](https://crowdin.com/project/factorio-mods-localization). I'd be happy to add your language and credits to the next release.
|
||||
|
||||
### Credits
|
||||
Thanks to [Friendch](https://mods.factorio.com/user/Friendch) for the french translation.
|
||||
Thanks to [Met_en_Bouldry](https://crowdin.com/profile/Met_en_Bouldry) for the ukrainian translation.
|
||||
If you want to contribute by translating this mod, you can view the existing translations on [Crowdin](https://crowdin.com/project/factorio-mods-localization). I'd be happy to add your language to the next release.
|
||||
|
||||
@@ -1,4 +1,21 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
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:
|
||||
- Import changes from Crowdin
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.0.1
|
||||
Date: 2024-10-26
|
||||
Features:
|
||||
|
||||
+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.1",
|
||||
"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