It works well (without UPS problems) when I comment the ontick line in your control.lua
if settings.startup["landfill-plus-breakable-landfill-setting"].value == true then
-- script.on_event(defines.events.on_tick, save_landfill_mining)
script.on_event(defines.events.on_built_entity, unbreakable_entity)
script.on_event(defines.events.on_player_mined_entity, unbreakable_entity_destroyed_player)
script.on_event(defines.events.on_robot_mined_entity, unbreakable_entity_destroyed_robot)
script.on_event(defines.events.on_pre_ghost_deconstructed, unbreakable_entity_destroyed_ghost)
else
end
Could you please make your save mining optional? It is nice to have this foolproof function but it costs a lot of UPS performance. Thus I prefer to deactivate it while some others might enjoy it => Option would be nice :-)