masterl / MaintenanceMadnessReloaded

Reupload/update of Maintenance Madness Factorio mod
MIT License
2 stars 0 forks source link

Improve check for maintenance unit placement entities on data-final-fixes.lua #10

Open masterl opened 3 years ago

masterl commented 3 years ago

Currently the code is like this:

if is_faulty( prototype_name ) or prototype_group == 'beacon' and
        string.find( prototype_name, '-placement%-entity' ) ~= nil then

We should also check for the mod prefix, since any other mod could define something with placement-entity on it's name...