Fix type of CreateTrivialSmokeEffectItem::only_when_visible

Geheim
Burner Inserter
Burner Inserter
Posts: 9
Joined: Wed Feb 05, 2025 9:28 pm
Contact:

Fix type of CreateTrivialSmokeEffectItem::only_when_visible

Post by Geheim »

CreateTrivialSmokeEffectItem::only_when_visible has a type of float, but a default value of false and is only used as a bool, e.g:

Code: Select all

data.raw["explosion"]["carbonic-asteroid-explosion-2"]["created_effect"]["action_delivery"]["target_effects"][2]["only_when_visible"] = true
(or see line 276904 of data-raw-dump.json)
Bilka
Factorio Staff
Factorio Staff
Posts: 3357
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Fix type of CreateTrivialSmokeEffectItem::only_when_visible

Post by Bilka »

Thanks, fixed for 2.0.42.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”