diff --git a/changelog.txt b/changelog.txt index de34390..54a574d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Version: 0.12.19 Date: ??? Bugfixes: - Fixed blocks not linking correctly when in ingredient input mode #467 + - Fixed hidden machines showing when editing a recipe #466 - Fixed error with Nullius rocket recipes #468 --------------------------------------------------------------------------------------------------- Version: 0.12.18 diff --git a/model/Player.lua b/model/Player.lua index 38139c8..897ac5a 100644 --- a/model/Player.lua +++ b/model/Player.lua @@ -628,20 +628,12 @@ function Player.getProductionMachines() local filters = {} table.insert(filters, {filter="crafting-machine", mode="or"}) table.insert(filters, {filter="hidden", mode="and", invert=true}) - table.insert(filters, {filter="crafting-machine", mode="or"}) - table.insert(filters, {filter="flag", flag="player-creation", mode="and"}) table.insert(filters, {filter="type", type="lab", mode="or"}) table.insert(filters, {filter="hidden", mode="and", invert=true}) - table.insert(filters, {filter="type", type="lab", mode="or"}) - table.insert(filters, {filter="flag", flag="player-creation", mode="and"}) table.insert(filters, {filter="type", type="mining-drill", mode="or"}) table.insert(filters, {filter="hidden", mode="and", invert=true}) - table.insert(filters, {filter="type", type="mining-drill", mode="or"}) - table.insert(filters, {filter="flag", flag="player-creation", mode="and"}) table.insert(filters, {filter="type", type="rocket-silo", mode="or"}) table.insert(filters, {filter="hidden", mode="and", invert=true}) - table.insert(filters, {filter="type", type="rocket-silo", mode="or"}) - table.insert(filters, {filter="flag", flag="player-creation", mode="and"}) local prototypes = game.get_filtered_entity_prototypes(filters) prototypes = Player.ExcludePlacedByHidden(prototypes)