Skip to content

Commit

Permalink
Review showing hidden entities #466
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Jul 22, 2023
1 parent 203e8e0 commit ebe82ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions model/Player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ebe82ff

Please sign in to comment.