When I use "game.fluid_prototypes" to search all fluids, this item appears. I don't want it to be displayed. How do I filter it?
type=??
name=??
How can I filter this article
How can I filter this article
- Attachments
-
- 屏幕截图 2022-06-12 195516.jpg (35.94 KiB) Viewed 1003 times
Re: How can I filter this article
Code: Select all
for _, fluid in pairs(game.fluid_prototypes) do
if not fluid.hidden then
game.print(fluid.name)
end
end
Re: How can I filter this article
Thank you, that's rightDaveMcW wrote: ↑Sun Jun 12, 2022 4:30 pmCode: Select all
for _, fluid in pairs(game.fluid_prototypes) do if not fluid.hidden then game.print(fluid.name) end end