How can I filter this article
Posted: Sun Jun 12, 2022 12:01 pm
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=??
type=??
name=??
Code: Select all
for _, fluid in pairs(game.fluid_prototypes) do
if not fluid.hidden then
game.print(fluid.name)
end
end
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